mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
according to an older mail from Owen, GDK_ACTION_DEFAULT means nothing and
2003-10-17 Sven Neumann <sven@gimp.org> * app/widgets/gimpdnd.c (gimp_dnd_file_dest_add): according to an older mail from Owen, GDK_ACTION_DEFAULT means nothing and should not be used. * app/widgets/gimpcontainertreeview-dnd.c (gimp_container_tree_view_drop_status): pass 0 to gdk_drag_status() instead of GDK_ACTION_DEFAULT.
This commit is contained in:
parent
42c46dbd12
commit
33370866a2
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2003-10-17 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/widgets/gimpdnd.c (gimp_dnd_file_dest_add): according to an
|
||||||
|
older mail from Owen, GDK_ACTION_DEFAULT means nothing and should
|
||||||
|
not be used.
|
||||||
|
|
||||||
|
* app/widgets/gimpcontainertreeview-dnd.c
|
||||||
|
(gimp_container_tree_view_drop_status): pass 0 to gdk_drag_status()
|
||||||
|
instead of GDK_ACTION_DEFAULT.
|
||||||
|
|
||||||
2003-10-17 Sven Neumann <sven@gimp.org>
|
2003-10-17 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/widgets/gimpdnd.c (gimp_dnd_file_dest_add): for file drag
|
* app/widgets/gimpdnd.c (gimp_dnd_file_dest_add): for file drag
|
||||||
|
|
|
@ -114,7 +114,7 @@ gimp_container_tree_view_drop_status (GimpContainerTreeView *tree_view,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gdk_drag_status (context, GDK_ACTION_DEFAULT, time);
|
gdk_drag_status (context, 0, time);
|
||||||
|
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -815,17 +815,13 @@ gimp_dnd_file_dest_add (GtkWidget *widget,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
/* Set a default drag dest if not already done. Explicitely set
|
/* Set a default drag dest if not already done. Explicitely set
|
||||||
* DEFAULT, COPY and MOVE for file drag destinations. Some file
|
* COPY and MOVE for file drag destinations. Some file managers
|
||||||
* managers such as Konqueror only offer MOVE by default.
|
* such as Konqueror only offer MOVE by default.
|
||||||
*/
|
*/
|
||||||
if (! g_object_get_data (G_OBJECT (widget), "gtk-drag-dest"))
|
if (! g_object_get_data (G_OBJECT (widget), "gtk-drag-dest"))
|
||||||
gtk_drag_dest_set (widget,
|
gtk_drag_dest_set (widget,
|
||||||
GTK_DEST_DEFAULT_ALL, NULL, 0,
|
GTK_DEST_DEFAULT_ALL, NULL, 0,
|
||||||
GDK_ACTION_DEFAULT | GDK_ACTION_COPY | GDK_ACTION_MOVE);
|
GDK_ACTION_COPY | GDK_ACTION_MOVE);
|
||||||
|
|
||||||
gtk_drag_dest_set (widget,
|
|
||||||
GTK_DEST_DEFAULT_ALL, NULL, 0,
|
|
||||||
GDK_ACTION_COPY | GDK_ACTION_MOVE);
|
|
||||||
|
|
||||||
gimp_dnd_data_dest_add (GIMP_DND_TYPE_NETSCAPE_URL, widget,
|
gimp_dnd_data_dest_add (GIMP_DND_TYPE_NETSCAPE_URL, widget,
|
||||||
G_CALLBACK (set_file_func),
|
G_CALLBACK (set_file_func),
|
||||||
|
|
Loading…
Reference in a new issue