diff options
author | Kartikeya Sharma <09kartikeya@gmail.com> | 2017-03-04 20:37:27 +0530 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2017-03-08 17:17:01 +0100 |
commit | 460235b9c9ec414f82b3cf872118c1a51773c978 (patch) | |
tree | fc2d8ced4463d559095388c4bd6239a4ae9783f1 /src/nautilus-file-operations.c | |
parent | f72f5f3c9d810b4d6e80926815526eb37a213c40 (diff) | |
download | nautilus-460235b9c9ec414f82b3cf872118c1a51773c978.tar.gz |
ui-utilities: Add custom function to display error 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 adds function to show error dialog (show_error_dialog)
which is to be used in place of eel_show_error_dialog.
https://bugzilla.gnome.org/show_bug.cgi?id=775092
Diffstat (limited to 'src/nautilus-file-operations.c')
-rw-r--r-- | src/nautilus-file-operations.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c index d25a93a53..125be8d55 100644 --- a/src/nautilus-file-operations.c +++ b/src/nautilus-file-operations.c @@ -41,7 +41,6 @@ #include <eel/eel-glib-extensions.h> #include <eel/eel-gtk-extensions.h> -#include <eel/eel-stock-dialogs.h> #include <eel/eel-vfs-extensions.h> #include <glib/gi18n.h> @@ -60,6 +59,7 @@ #include "nautilus-file-utilities.h" #include "nautilus-file-undo-operations.h" #include "nautilus-file-undo-manager.h" +#include "nautilus-ui-utilities.h" /* TODO: TESTING!!! */ @@ -2590,9 +2590,9 @@ unmount_mount_callback (GObject *source_object, primary = g_strdup_printf (_("Unable to unmount %s"), mount_name); } - eel_show_error_dialog (primary, - error->message, - data->parent_window); + show_error_dialog (primary, + error->message, + data->parent_window); g_free (primary); } } @@ -2915,9 +2915,9 @@ volume_mount_cb (GObject *source_object, primary = g_strdup_printf (_("Unable to access ā%sā"), name); g_free (name); success = FALSE; - eel_show_error_dialog (primary, - error->message, - parent); + show_error_dialog (primary, + error->message, + parent); g_free (primary); } g_error_free (error); |