diff options
author | Tor Lillqvist <tml@novell.com> | 2005-06-17 19:41:01 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-06-17 19:41:01 +0000 |
commit | 9c8f987df707aa3cd7d01e4e06102aee6faccc3b (patch) | |
tree | 0304d453a8624023575df6aaf58eb759d0579988 /gdk | |
parent | 4e077183cc8cbadde9319c8e145338c330f94623 (diff) | |
download | gtk+-9c8f987df707aa3cd7d01e4e06102aee6faccc3b.tar.gz |
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.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkdnd-win32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c index 1a02193567..346a894538 100644 --- a/gdk/win32/gdkdnd-win32.c +++ b/gdk/win32/gdkdnd-win32.c @@ -978,6 +978,8 @@ gdk_dropfiles_filter (GdkXEvent *xev, /* WM_DROPFILES drops are always file names */ context->targets = 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; event->dnd.type = GDK_DROP_START; |