connect to "accel-changed" of the accel_group using connect_object(), not

2004-07-22  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptoolbox.c (toolbox_create_tools): connect to
	"accel-changed" of the accel_group using connect_object(), not
	just connect() so we don't crash when it's emitted after the
	toolbox is destroyed.
This commit is contained in:
Michael Natterer
2004-07-22 11:18:52 +00:00
committed by Michael Natterer
parent f9c15b4724
commit a5760e33fe
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2004-07-22 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox.c (toolbox_create_tools): connect to
"accel-changed" of the accel_group using connect_object(), not
just connect() so we don't crash when it's emitted after the
toolbox is destroyed.
2004-07-21 Ray Strode <rstrode@redhat.com>
* gimp/data/misc/gimp.desktop.in.in: Add MimeType line to desktop

View File

@ -802,9 +802,9 @@ toolbox_create_tools (GimpToolbox *toolbox,
accel_group =
gtk_accel_group_from_accel_closure (accel_closure);
g_signal_connect (accel_group, "accel_changed",
G_CALLBACK (gimp_toolbox_button_accel_changed),
button);
g_signal_connect_object (accel_group, "accel_changed",
G_CALLBACK (gimp_toolbox_button_accel_changed),
button, 0);
gimp_toolbox_button_accel_changed (accel_group,
0, 0,