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:
Michael Natterer 2005-07-23 19:42:20 +00:00 committed by Michael Natterer
parent 53ac1f4f01
commit b886b0179b
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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);