summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2012-01-04 15:39:26 +0100
committerraveit65 <[email protected]>2018-07-03 10:39:59 +0200
commited3ef44856215622d9feab525ce0302b410cdd61 (patch)
tree54bed1741d3976889d4c5086a0e97cfc0b87da66 /src/eom-scroll-view.c
parentfb4446d3d00753a9918a4792e73a70b4a806ce09 (diff)
downloadeom-ed3ef44856215622d9feab525ce0302b410cdd61.tar.bz2
eom-ed3ef44856215622d9feab525ce0302b410cdd61.tar.xz
Enable more Drag&Drop actions when eom is drag source
Enable the link and ask actions allowing to create symlinks in Caja or triggering a menu asking what to do. Also enable the move action, which was not specifically enabled before but still worked anyway. https://bugzilla.gnome.org/show_bug.cgi?id=667076 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/bcf7817
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r--src/eom-scroll-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 2e9b7c5..69e9b99 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -1800,7 +1800,8 @@ eom_scroll_view_init (EomScrollView *view)
gtk_drag_source_set (priv->display, GDK_BUTTON1_MASK,
target_table, G_N_ELEMENTS (target_table),
- GDK_ACTION_COPY);
+ GDK_ACTION_COPY | GDK_ACTION_MOVE |
+ GDK_ACTION_LINK | GDK_ACTION_ASK);
g_signal_connect (G_OBJECT (priv->display), "drag-data-get",
G_CALLBACK (view_on_drag_data_get_cb), view);
g_signal_connect (G_OBJECT (priv->display), "drag-begin",