diff options
author | Marcel Stimberg <[email protected]> | 2009-08-23 20:40:16 +0000 |
---|---|---|
committer | Benjamin Valentin <[email protected]> | 2012-03-26 23:49:25 +0200 |
commit | 68ec89213e4d7c23cb681016b0b627e39fae9e4f (patch) | |
tree | e581c9ca56d38d3fbd92d10caeeee646143df52c /mate-panel/menu.c | |
parent | ab55bf3e46ccab95d268bf0e10dce2e15294cabf (diff) | |
download | mate-panel-68ec89213e4d7c23cb681016b0b627e39fae9e4f.tar.bz2 mate-panel-68ec89213e4d7c23cb681016b0b627e39fae9e4f.tar.xz |
When using Drag'n'Drop from Places menu, install a link launcher (.desktop file) instead of copying the entire directory.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=357934
Bug-Ubuntu: https://launchpad.net/bugs/62529
Diffstat (limited to 'mate-panel/menu.c')
-rw-r--r-- | mate-panel/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-panel/menu.c b/mate-panel/menu.c index 273fae86..b3256842 100644 --- a/mate-panel/menu.c +++ b/mate-panel/menu.c @@ -1211,7 +1211,8 @@ drag_data_get_string_cb (GtkWidget *widget, GdkDragContext *context, void setup_uri_drag (GtkWidget *menuitem, const char *uri, - const char *icon) + const char *icon, + GdkDragAction action) { static GtkTargetEntry menu_item_targets[] = { { "text/uri-list", 0, 0 } @@ -1223,7 +1224,7 @@ setup_uri_drag (GtkWidget *menuitem, gtk_drag_source_set (menuitem, GDK_BUTTON1_MASK|GDK_BUTTON2_MASK, menu_item_targets, 1, - GDK_ACTION_COPY); + action); if (icon != NULL) gtk_drag_source_set_icon_name (menuitem, icon); |