[nautilus] window-slot: Don't use eel to show a dialog



commit eb23c630c612d3b2dcf2b9a7d6ec844814d677d2
Author: Kartikeya Sharma <09kartikeya gmail com>
Date:   Wed Feb 8 01:14:38 2017 +0530

    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

 src/nautilus-window-slot.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 268bfdd..c5c94e1 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]