summaryrefslogtreecommitdiff
path: root/gtk/gtkplacessidebar.c
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl+gnome@gmail.com>2013-09-07 13:15:01 +0200
committerNelson Benítez León <nbenitezl+gnome@gmail.com>2013-10-23 20:20:33 +0200
commit7fa27dff259ad79d5a4364d7eaa6b63150082af3 (patch)
tree8ca042f2f637cb20ee8dcf26fb41e20bce6535fd /gtk/gtkplacessidebar.c
parent1b839d4b72a2cedb2bb633b5acd57239860693f4 (diff)
downloadgtk+-7fa27dff259ad79d5a4364d7eaa6b63150082af3.tar.gz
GtkPlacesSidebar: use gtk api to add dnd uri targets
Instead of hardcoding it in the dnd drop targets list. Part of bug 707679
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r--gtk/gtkplacessidebar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 614bb4f03b..f86815c9e2 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -302,7 +302,6 @@ static const GtkTargetEntry dnd_source_targets[] = {
/* Target types for dropping into the shortcuts list */
static const GtkTargetEntry dnd_drop_targets [] = {
{ "GTK_TREE_MODEL_ROW", GTK_TARGET_SAME_WIDGET, GTK_TREE_MODEL_ROW },
- { "text/uri-list", 0, TEXT_URI_LIST },
{ "XdndDirectSave0", 0, XDND_DIRECT_SAVE } /* XDS Protocol Type */
};
@@ -3825,6 +3824,7 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar)
GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK);
target_list = gtk_target_list_new (dnd_drop_targets, G_N_ELEMENTS (dnd_drop_targets));
+ gtk_target_list_add_uri_targets (target_list, TEXT_URI_LIST);
gtk_target_list_add_text_targets (target_list, TEXT);
gtk_drag_dest_set_target_list (GTK_WIDGET (tree_view), target_list);
gtk_target_list_unref (target_list);