mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
1999-02-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (drag_data_get): Set the Netscape URL from the icon if it is available. Wheee! We can now drop icons onto Netscape.
This commit is contained in:
parent
9260355181
commit
12199ba19c
@ -1,5 +1,8 @@
|
|||||||
1999-02-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
1999-02-05 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||||
|
|
||||||
|
* gdesktop.c (drag_data_get): Set the Netscape URL from the icon
|
||||||
|
if it is available. Wheee! We can now drop icons onto Netscape.
|
||||||
|
|
||||||
* gmain.h: Added prototype for gmc_open_filename().
|
* gmain.h: Added prototype for gmc_open_filename().
|
||||||
|
|
||||||
* gdesktop.c (desktop_icon_info_open): Fixed call to
|
* gdesktop.c (desktop_icon_info_open): Fixed call to
|
||||||
|
@ -1150,16 +1150,25 @@ drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *sel
|
|||||||
len);
|
len);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TARGET_URL:
|
case TARGET_URL:
|
||||||
files = gnome_uri_list_extract_uris (filelist);
|
if (dii->url)
|
||||||
if (files) {
|
|
||||||
gtk_selection_data_set (selection_data,
|
gtk_selection_data_set (selection_data,
|
||||||
selection_data->target,
|
selection_data->target,
|
||||||
8,
|
8,
|
||||||
files->data,
|
dii->url,
|
||||||
strlen (files->data));
|
strlen (dii->url));
|
||||||
|
else {
|
||||||
|
files = gnome_uri_list_extract_uris (filelist);
|
||||||
|
if (files)
|
||||||
|
gtk_selection_data_set (selection_data,
|
||||||
|
selection_data->target,
|
||||||
|
8,
|
||||||
|
files->data,
|
||||||
|
strlen (files->data));
|
||||||
|
|
||||||
|
gnome_uri_list_free_strings (files);
|
||||||
}
|
}
|
||||||
gnome_uri_list_free_strings (files);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user