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/panel-menu-items.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/panel-menu-items.c')
-rw-r--r-- | mate-panel/panel-menu-items.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c index 81668dbc..e39fa567 100644 --- a/mate-panel/panel-menu-items.c +++ b/mate-panel/panel-menu-items.c @@ -261,7 +261,7 @@ panel_menu_items_append_from_desktop (GtkWidget *menu, uri = g_filename_to_uri (full_path, NULL, NULL); - setup_uri_drag (item, uri, icon); + setup_uri_drag (item, uri, icon, GDK_ACTION_COPY); g_free (uri); g_key_file_free (key_file); @@ -308,7 +308,8 @@ panel_menu_items_append_place_item (const char *icon_name, g_signal_connect (G_OBJECT (item), "button_press_event", G_CALLBACK (menu_dummy_button_press_event), NULL); - setup_uri_drag (item, uri, icon_name); + if (g_str_has_prefix (uri, "file:")) /*Links only work for local files*/ + setup_uri_drag (item, uri, icon_name, GDK_ACTION_LINK); } static GtkWidget * |