chain up if a parent impl exists to be safe against future gtk versions

2009-01-26  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
	parent impl exists to be safe against future gtk versions doing
	something in GtkButton::clicked() (as happened in GTK+ trunk).


svn path=/trunk/; revision=27958
This commit is contained in:
Michael Natterer 2009-01-26 20:23:01 +00:00 committed by Michael Natterer
parent bb0ca406ef
commit ef3fbab8bc
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-01-26 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
parent impl exists to be safe against future gtk versions doing
something in GtkButton::clicked() (as happened in GTK+ trunk).
2009-01-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/curve-bend.c (p_load_pointfile): check the

View File

@ -132,4 +132,8 @@ gimp_button_clicked (GtkButton *button)
gimp_button_extended_clicked (GIMP_BUTTON (button),
GIMP_BUTTON (button)->press_state);
}
else if (GTK_BUTTON_CLASS (parent_class)->clicked)
{
GTK_BUTTON_CLASS (parent_class)->clicked (button);
}
}