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

if display became NULL (e.g. by closing a view) and we decide to activate

2005-02-08  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_display_changed): if display became NULL
	(e.g. by closing a view) and we decide to activate another view
	of the same image, stop the emission of the original
	"display-changed" signal so it doesn't affect the toolbox'
	UI manager. Fixes bug #159304.
parent 783ddf9e
2005-02-08 Michael Natterer <mitch@gimp.org>
* app/gui/gui.c (gui_display_changed): if display became NULL
(e.g. by closing a view) and we decide to activate another view
of the same image, stop the emission of the original
"display-changed" signal so it doesn't affect the toolbox'
UI manager. Fixes bug #159304.
2005-02-08 Sven Neumann <sven@gimp.org>
* plug-ins/winicon/icosave.c (ico_image_get_reduced_buf): fixed
......
......@@ -596,6 +596,11 @@ gui_display_changed (GimpContext *context,
if (display2->gimage == image)
{
gimp_context_set_display (context, display2);
/* stop the emission of the original signal (the emission of
* the recursive signal is finished)
*/
g_signal_stop_emission_by_name (context, "display-changed");
return;
}
}
......
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