Make it compile - miguel
Этот коммит содержится в:
родитель
73ba8fe2d5
Коммит
33929b0be0
@ -265,15 +265,16 @@ perform_drop_manually (int operation, GdkEventDropDataAvailable *event, char *de
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
drop_on_panel (int requestor_id, char *dest)
|
drop_on_panel (GdkEventDropDataAvailable *event, char *dest)
|
||||||
{
|
{
|
||||||
WPanel *source_panel;
|
WPanel *source_panel;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
int operation;
|
||||||
|
|
||||||
gdk_window_get_pointer (NULL, &x, &y, NULL);
|
gdk_window_get_pointer (NULL, &x, &y, NULL);
|
||||||
operation = get_operation (x, y);
|
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)
|
if (source_panel)
|
||||||
perform_drop_on_panel (source_panel, operation, dest);
|
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 count;
|
||||||
int len;
|
int len;
|
||||||
int is_directory = strcasecmp (di->dentry->type, "directory") == 0;
|
int is_directory = strcasecmp (di->dentry->type, "directory") == 0;
|
||||||
int operation;
|
|
||||||
|
|
||||||
if (is_directory){
|
if (is_directory){
|
||||||
drop_on_panel (event->requestor, di->dentry->exec);
|
drop_on_panel (event, di->dentry->exec);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,4 +5,4 @@ GtkWidget *create_transparent_text_window (char *file, char *text, int extra_eve
|
|||||||
GtkWidget *make_transparent_window (char *file);
|
GtkWidget *make_transparent_window (char *file);
|
||||||
|
|
||||||
/* gdesktop.c */
|
/* 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.
|
* 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 */
|
/* Workaround for the CList that is not adding its clist-window to the DND windows */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user