summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view-dnd.c
diff options
context:
space:
mode:
authorGeorge Mocanu <mocanu.geo98@gmail.com>2018-04-18 15:00:24 +0300
committerCarlos Soriano <csoriano@gnome.org>2018-04-23 22:12:13 +0200
commit01e20b9d29bb8f83cdc5a11d4dd03196bf88ff3c (patch)
treeb1c57f00bcad7e870a5f73b53601ff5ae69a666f /src/nautilus-files-view-dnd.c
parentc1bb594d26e3ead8d28f176c1eabe1cee267ffa7 (diff)
downloadnautilus-01e20b9d29bb8f83cdc5a11d4dd03196bf88ff3c.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-files-view-dnd.c')
-rw-r--r--src/nautilus-files-view-dnd.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/nautilus-files-view-dnd.c b/src/nautilus-files-view-dnd.c
index ca4714ee6..dd26582d5 100644
--- a/src/nautilus-files-view-dnd.c
+++ b/src/nautilus-files-view-dnd.c
@@ -30,7 +30,6 @@
#include "nautilus-files-view.h"
#include "nautilus-application.h"
-#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <eel/eel-vfs-extensions.h>
@@ -39,6 +38,7 @@
#include "nautilus-clipboard.h"
#include "nautilus-dnd.h"
#include "nautilus-global-preferences.h"
+#include "nautilus-ui-utilities.h"
#define GET_ANCESTOR(obj) \
GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (obj), GTK_TYPE_WINDOW))
@@ -145,9 +145,10 @@ nautilus_files_view_handle_netscape_url_drop (NautilusFilesView *view,
if (!g_file_is_native (f))
{
- eel_show_warning_dialog (_("Drag and drop is not supported."),
- _("Drag and drop is only supported on local file systems."),
- GET_ANCESTOR (view));
+ show_dialog (_("Drag and drop is not supported."),
+ _("Drag and drop is only supported on local file systems."),
+ GET_ANCESTOR (view),
+ GTK_MESSAGE_WARNING);
g_object_unref (f);
return;
}
@@ -185,9 +186,10 @@ nautilus_files_view_handle_netscape_url_drop (NautilusFilesView *view,
(action != GDK_ACTION_MOVE) &&
(action != GDK_ACTION_LINK))
{
- eel_show_warning_dialog (_("Drag and drop is not supported."),
- _("An invalid drag type was used."),
- GET_ANCESTOR (view));
+ show_dialog (_("Drag and drop is not supported."),
+ _("An invalid drag type was used."),
+ GET_ANCESTOR (view),
+ GTK_MESSAGE_WARNING);
return;
}
@@ -277,9 +279,10 @@ nautilus_files_view_handle_uri_list_drop (NautilusFilesView *view,
(action != GDK_ACTION_MOVE) &&
(action != GDK_ACTION_LINK))
{
- eel_show_warning_dialog (_("Drag and drop is not supported."),
- _("An invalid drag type was used."),
- GET_ANCESTOR (view));
+ show_dialog (_("Drag and drop is not supported."),
+ _("An invalid drag type was used."),
+ GET_ANCESTOR (view),
+ GTK_MESSAGE_WARNING);
g_free (container_uri);
return;
}