Skip to content

Commit ed3ef44

Browse files
fxriraveit65
authored andcommitted
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
1 parent fb4446d commit ed3ef44

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/eom-scroll-view.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,8 @@ eom_scroll_view_init (EomScrollView *view)
18001800

18011801
gtk_drag_source_set (priv->display, GDK_BUTTON1_MASK,
18021802
target_table, G_N_ELEMENTS (target_table),
1803-
GDK_ACTION_COPY);
1803+
GDK_ACTION_COPY | GDK_ACTION_MOVE |
1804+
GDK_ACTION_LINK | GDK_ACTION_ASK);
18041805
g_signal_connect (G_OBJECT (priv->display), "drag-data-get",
18051806
G_CALLBACK (view_on_drag_data_get_cb), view);
18061807
g_signal_connect (G_OBJECT (priv->display), "drag-begin",

src/eom-thumb-view.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ eom_thumb_view_constructed (GObject *object)
149149

150150
gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (thumbview), 0,
151151
NULL, 0,
152-
GDK_ACTION_COPY);
152+
GDK_ACTION_COPY |
153+
GDK_ACTION_MOVE |
154+
GDK_ACTION_LINK |
155+
GDK_ACTION_ASK);
153156
gtk_drag_source_add_uri_targets (GTK_WIDGET (thumbview));
154157

155158
g_signal_connect (G_OBJECT (thumbview), "drag-data-get",

0 commit comments

Comments
 (0)