mirror of https://github.com/GNOME/gimp.git
special case the global buffer so it can be dropped, not only dragged
2005-07-23 Michael Natterer <mitch@gimp.org> * app/widgets/gimpselectiondata.c (gimp_selection_data_get_buffer): special case the global buffer so it can be dropped, not only dragged around.
This commit is contained in:
parent
53ac1f4f01
commit
b886b0179b
|
@ -1,3 +1,9 @@
|
|||
2005-07-23 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpselectiondata.c
|
||||
(gimp_selection_data_get_buffer): special case the global buffer
|
||||
so it can be dropped, not only dragged around.
|
||||
|
||||
2005-07-23 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimppageselector.c: added a label showing the
|
||||
|
|
|
@ -777,8 +777,11 @@ gimp_selection_data_get_buffer (GtkSelectionData *selection,
|
|||
if (! name)
|
||||
return NULL;
|
||||
|
||||
buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, name);
|
||||
if (strcmp (name, "Global Buffer") == 0)
|
||||
buffer = gimp->global_buffer;
|
||||
else
|
||||
buffer = (GimpBuffer *)
|
||||
gimp_container_get_child_by_name (gimp->named_buffers, name);
|
||||
|
||||
g_free (name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue