forked from AuroraMiddleware/gtk
Set the actions and suggested_action fields in the GdkDragContext to
2005-06-17 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions and suggested_action fields in the GdkDragContext to GDK_ACTION_COPY. Otherwise apps that check the suggested_action field, like eog, won't accept dropped files.
This commit is contained in:
parent
4e077183cc
commit
9c8f987df7
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-17 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
|
||||||
|
and suggested_action fields in the GdkDragContext to
|
||||||
|
GDK_ACTION_COPY. Otherwise apps that check the suggested_action
|
||||||
|
field, like eog, won't accept dropped files.
|
||||||
|
|
||||||
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-17 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
|
||||||
|
and suggested_action fields in the GdkDragContext to
|
||||||
|
GDK_ACTION_COPY. Otherwise apps that check the suggested_action
|
||||||
|
field, like eog, won't accept dropped files.
|
||||||
|
|
||||||
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-17 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
|
||||||
|
and suggested_action fields in the GdkDragContext to
|
||||||
|
GDK_ACTION_COPY. Otherwise apps that check the suggested_action
|
||||||
|
field, like eog, won't accept dropped files.
|
||||||
|
|
||||||
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
2005-06-17 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().
|
||||||
|
@ -978,6 +978,8 @@ gdk_dropfiles_filter (GdkXEvent *xev,
|
|||||||
/* WM_DROPFILES drops are always file names */
|
/* WM_DROPFILES drops are always file names */
|
||||||
context->targets =
|
context->targets =
|
||||||
g_list_append (NULL, GUINT_TO_POINTER (_text_uri_list));
|
g_list_append (NULL, GUINT_TO_POINTER (_text_uri_list));
|
||||||
|
context->actions = GDK_ACTION_COPY;
|
||||||
|
context->suggested_action = GDK_ACTION_COPY;
|
||||||
current_dest_drag = context;
|
current_dest_drag = context;
|
||||||
|
|
||||||
event->dnd.type = GDK_DROP_START;
|
event->dnd.type = GDK_DROP_START;
|
||||||
|
Loading…
Reference in New Issue
Block a user