summaryrefslogtreecommitdiff
path: root/src/nautilus-file-utilities.c
diff options
context:
space:
mode:
authorGeorge Mocanu <mocanu.geo98@gmail.com>2018-04-18 15:00:24 +0300
committerCarlos Soriano <csoriano1618@gmail.com>2018-04-23 14:22:20 +0000
commit50082ee2a3d93ac822a19fa0303ee3d13ccc716e (patch)
tree35d6ca813b26ce26fcc21af7d9a210ff49024b2b /src/nautilus-file-utilities.c
parent2ab5c897e4a52dc7d02e72740a84808e2a317734 (diff)
downloadnautilus-50082ee2a3d93ac822a19fa0303ee3d13ccc716e.tar.gz
Replace eel_show_warning_dialog()
We need to move away from using eel and port most functionalities inside nautilus. Replaced the usage of eel_show_warning_dialog() with the show_dialog() alternative. https://gitlab.gnome.org/GNOME/nautilus/issues/331
Diffstat (limited to 'src/nautilus-file-utilities.c')
-rw-r--r--src/nautilus-file-utilities.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nautilus-file-utilities.c b/src/nautilus-file-utilities.c
index e27fef428..a322d4d92 100644
--- a/src/nautilus-file-utilities.c
+++ b/src/nautilus-file-utilities.c
@@ -30,8 +30,8 @@
#include "nautilus-file-operations.h"
#include "nautilus-search-directory.h"
#include "nautilus-starred-directory.h"
+#include "nautilus-ui-utilities.h"
#include <eel/eel-glib-extensions.h>
-#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <eel/eel-debug.h>
#include <eel/eel-vfs-extensions.h>
@@ -926,9 +926,10 @@ nautilus_restore_files_from_trash (GList *files,
message = g_strdup_printf (_("Could not determine original location of ā€œ%sā€ "), file_name);
g_free (file_name);
- eel_show_warning_dialog (message,
- _("The item cannot be restored from trash"),
- parent_window);
+ show_dialog (message,
+ _("The item cannot be restored from trash"),
+ parent_window,
+ GTK_MESSAGE_WARNING);
g_free (message);
}