Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-01-18 15:00:58 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-01-18 15:00:58 (GMT)
commitfe8a90e5ecdc21069bc6617f07b7ab12a5a4a012 (patch)
treec22520464311d07efd3ec2eb4a0cf4601d07ffe6 /shell/ev-window.c
parenta4f9ab1be8697d6d6a9ece6fb5c4dd9166b5456d (diff)
Bug 558084 – simplify drag data handling
svn path=/trunk/; revision=3351
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index abfcae2..54db149 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -242,10 +242,6 @@ static const gchar *document_print_settings[] = {
GTK_PRINT_SETTINGS_OUTPUT_URI
};
-static const GtkTargetEntry ev_window_drop_targets[] = {
- { "text/uri-list", 0, 0 }
-};
-
static void ev_window_update_actions (EvWindow *ev_window);
static void ev_window_sidebar_visibility_changed_cb (EvSidebar *ev_sidebar,
GParamSpec *pspec,
@@ -6265,9 +6261,9 @@ ev_window_init (EvWindow *ev_window)
/* Drag and Drop */
gtk_drag_dest_set (GTK_WIDGET (ev_window),
GTK_DEST_DEFAULT_ALL,
- ev_window_drop_targets,
- G_N_ELEMENTS (ev_window_drop_targets),
+ NULL, 0,
GDK_ACTION_COPY);
+ gtk_drag_dest_add_uri_targets (GTK_WIDGET (ev_window));
}
/**