summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKartikeya Sharma <09kartikeya@gmail.com>2017-02-11 10:25:50 +0530
committerCarlos Soriano <csoriano@gnome.org>2017-03-08 17:17:01 +0100
commitdf262b5c93f7103b23fc4554be747e9bb017ab15 (patch)
treeb7b3f37c22d9e994d75400df91006703d3ec3306
parenteb23c630c612d3b2dcf2b9a7d6ec844814d677d2 (diff)
downloadnautilus-df262b5c93f7103b23fc4554be747e9bb017ab15.tar.gz
window: 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 5404309b7..2fb2a9cda 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -41,7 +41,6 @@
#include <eel/eel-debug.h>
#include <eel/eel-gtk-extensions.h>
-#include <eel/eel-stock-dialogs.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
@@ -1067,7 +1066,7 @@ places_sidebar_show_error_message_cb (GtkPlacesSidebar *sidebar,
{
NautilusWindow *window = NAUTILUS_WINDOW (user_data);
- eel_show_error_dialog (primary, secondary, GTK_WINDOW (window));
+ show_error_dialog (primary, secondary, GTK_WINDOW (window));
}
static void