From 797fabbe3166d9fddc29be9d7c6bedeb8967d867 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 16 Dec 2006 20:34:48 +0000 Subject: [PATCH] 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) --- ChangeLog | 9 +++++++++ gtk/gtkscrolledwindow.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4da46f94cc..a3a76d7e44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-12-16 Tristan Van Berkom + + * 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 Merged from gtk-2-10: diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 6ef783a361..d9ab546ef0 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -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: