Fixed a bug in set_property() (setting "window-placement-set" could result

* gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
	(setting "window-placement-set" could result in a crash because
	of boolean/enum mixup)
This commit is contained in:
Tristan Van Berkom 2006-12-16 20:34:48 +00:00
parent 8387869a5d
commit 797fabbe31
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2006-12-16 Tristan Van Berkom <tvb@gnome.org>
* gtk/gtkmessagedialog.c: Added return_if_fail (image) to
gtk_message_dialog_set_image ()
* gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
(setting "window-placement-set" could result in a crash because
of boolean/enum mixup)
2006-12-15 Federico Mena Quintero <federico@novell.com>
Merged from gtk-2-10:

View File

@ -825,7 +825,7 @@ gtk_scrolled_window_set_property (GObject *object,
break;
case PROP_WINDOW_PLACEMENT_SET:
gtk_scrolled_window_set_placement_set (scrolled_window,
g_value_get_enum (value),
g_value_get_boolean (value),
TRUE);
break;
case PROP_SHADOW_TYPE: