summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKartikeya Sharma <09kartikeya@gmail.com>2017-02-08 01:14:38 +0530
committerCarlos Soriano <csoriano@gnome.org>2017-03-08 17:17:01 +0100
commiteb23c630c612d3b2dcf2b9a7d6ec844814d677d2 (patch)
tree0dc979d5abe11f44581e026675ae9171a286f3ba
parent460235b9c9ec414f82b3cf872118c1a51773c978 (diff)
downloadnautilus-eb23c630c612d3b2dcf2b9a7d6ec844814d677d2.tar.gz
window-slot: Don't use eel to show a dialog
Most of the things in eel are already in glib, or are already easy enough to have them directly in the code. So we should remove eel which is just another layer of abstraction that we don't need as it makes it hard to follow the code. This patch replaces eel_show_error_dialog with show_error_dialog to make it independent of eel. https://bugzilla.gnome.org/show_bug.cgi?id=775092
-rw-r--r--src/nautilus-window-slot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 268bfdd1e..c5c94e103 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -36,7 +36,6 @@
#include "nautilus-x-content-bar.h"
#include <glib/gi18n.h>
-#include <eel/eel-stock-dialogs.h>
#include "nautilus-file.h"
#include "nautilus-file-utilities.h"
@@ -45,6 +44,7 @@
#include "nautilus-monitor.h"
#include "nautilus-profile.h"
#include <libnautilus-extension/nautilus-location-widget-provider.h>
+#include "nautilus-ui-utilities.h"
enum
{
@@ -1434,7 +1434,8 @@ nautilus_window_slot_display_view_selection_failure (NautilusWindow *window,
detail_message = g_strdup_printf (_("Unhandled error message: %s"), error->message);
}
- eel_show_error_dialog (error_message, detail_message, GTK_WINDOW (window));
+ show_error_dialog (error_message, detail_message, GTK_WINDOW (window));
+
done:
g_free (error_message);
g_free (detail_message);