mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Make it compile - miguel
This commit is contained in:
parent
73ba8fe2d5
commit
33929b0be0
@ -265,15 +265,16 @@ perform_drop_manually (int operation, GdkEventDropDataAvailable *event, char *de
|
||||
}
|
||||
|
||||
void
|
||||
drop_on_panel (int requestor_id, char *dest)
|
||||
drop_on_panel (GdkEventDropDataAvailable *event, char *dest)
|
||||
{
|
||||
WPanel *source_panel;
|
||||
int x, y;
|
||||
int operation;
|
||||
|
||||
gdk_window_get_pointer (NULL, &x, &y, NULL);
|
||||
operation = get_operation (x, y);
|
||||
|
||||
source_panel = find_panel_owning_window_id (requestor_id);
|
||||
source_panel = find_panel_owning_window_id (event->requestor);
|
||||
|
||||
if (source_panel)
|
||||
perform_drop_on_panel (source_panel, operation, dest);
|
||||
@ -289,10 +290,9 @@ drop_cb (GtkWidget *widget, GdkEventDropDataAvailable *event, desktop_icon_t *di
|
||||
int count;
|
||||
int len;
|
||||
int is_directory = strcasecmp (di->dentry->type, "directory") == 0;
|
||||
int operation;
|
||||
|
||||
if (is_directory){
|
||||
drop_on_panel (event->requestor, di->dentry->exec);
|
||||
drop_on_panel (event, di->dentry->exec);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -5,4 +5,4 @@ GtkWidget *create_transparent_text_window (char *file, char *text, int extra_eve
|
||||
GtkWidget *make_transparent_window (char *file);
|
||||
|
||||
/* gdesktop.c */
|
||||
void drop_on_panel (int requestor_window_id, char *dest);
|
||||
void drop_on_panel (GdkEventDropDataAvailable *event, char *dest);
|
||||
|
@ -686,7 +686,7 @@ panel_drop_data_available (GtkWidget *widget, GdkEventDropDataAvailable *data, W
|
||||
* FIXME: gtk+ needs fixing here.
|
||||
*/
|
||||
|
||||
drop_on_panel (data->requestor, panel->cwd);
|
||||
drop_on_panel (data, panel->cwd);
|
||||
}
|
||||
|
||||
/* Workaround for the CList that is not adding its clist-window to the DND windows */
|
||||
|
Loading…
Reference in New Issue
Block a user