Commit b886b017 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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.
parent 53ac1f4f
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> 2005-07-23 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimppageselector.c: added a label showing the * libgimpwidgets/gimppageselector.c: added a label showing the
......
...@@ -777,8 +777,11 @@ gimp_selection_data_get_buffer (GtkSelectionData *selection, ...@@ -777,8 +777,11 @@ gimp_selection_data_get_buffer (GtkSelectionData *selection,
if (! name) if (! name)
return NULL; return NULL;
buffer = (GimpBuffer *) if (strcmp (name, "Global Buffer") == 0)
gimp_container_get_child_by_name (gimp->named_buffers, name); buffer = gimp->global_buffer;
else
buffer = (GimpBuffer *)
gimp_container_get_child_by_name (gimp->named_buffers, name);
g_free (name); g_free (name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment