don't call gtk_orientable_set_orientation() because that calls

2009-03-06  Michael Natterer  <mitch@gimp.org>

	* gtk/gtkscalebutton.c (gtk_scale_button_set_property): don't call
	gtk_orientable_set_orientation() because that calls g_object_set()
	again -> infinite recursion. Call gtk_scale_button_set_orientation()
	instead.


svn path=/trunk/; revision=22478
This commit is contained in:
Michael Natterer 2009-03-06 14:06:46 +00:00 committed by Michael Natterer
parent 66ffab9992
commit 06759f3674
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2009-03-06 Michael Natterer <mitch@gimp.org>
* gtk/gtkscalebutton.c (gtk_scale_button_set_property): don't call
gtk_orientable_set_orientation() because that calls g_object_set()
again -> infinite recursion. Call gtk_scale_button_set_orientation()
instead.
2009-03-02 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version

View File

@ -434,7 +434,7 @@ gtk_scale_button_set_property (GObject *object,
switch (prop_id)
{
case PROP_ORIENTATION:
gtk_orientable_set_orientation (GTK_ORIENTABLE (button), g_value_get_enum (value));
gtk_scale_button_set_orientation (button, g_value_get_enum (value));
break;
case PROP_VALUE:
gtk_scale_button_set_value (button, g_value_get_double (value));