[glade/glade-3-8] 2011-10-11 Benjamin Otte <otte redhat com>



commit e5839b444d969f84edcfca58f735e27ccf8e410a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Tue Oct 11 15:35:23 2011 -0400

    2011-10-11  Benjamin Otte <otte redhat com>
    
    	* gladeui/glade-editor-property.c:
    	Make size groups widget selection work (bug 647984)

 ChangeLog                       |    5 +++++
 gladeui/glade-editor-property.c |   15 ++++++---------
 2 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2941312..c575435 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-11  Benjamin Otte <otte redhat com>
+
+	* gladeui/glade-editor-property.c:
+	Make size groups widget selection work (bug 647984)
+
 2011-10-09  Tristan Van Berkom <tvb gnome org>
 
 	* gladeui/glade-project.c: Fix glade_project_notify_has_child() to notify
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index ffc545d..a0c1039 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -3201,7 +3201,7 @@ glade_eprop_objects_show_dialog (GtkWidget           *dialog_button,
 	GladeProject  *project;
 	gchar         *title = glade_eprop_object_dialog_title (eprop);
 	gint           res;
-	GList         *selected_list = NULL, *exception_list = NULL, *selected_objects = NULL;
+	GList         *selected_list = NULL, *exception_list = NULL, *selected_objects = NULL, *l;
 	
 	project = glade_widget_get_project (eprop->property->widget);
 	parent = gtk_widget_get_toplevel (GTK_WIDGET (eprop));
@@ -3245,14 +3245,11 @@ glade_eprop_objects_show_dialog (GtkWidget           *dialog_button,
 
 	exception_list = g_list_prepend (exception_list, eprop->property->widget);
 
-	if (g_value_get_object (eprop->property->value))
-	{
-		GList *l;
-		glade_property_get (eprop->property, &selected_objects);
-		for (l = selected_objects; l; l = l->next)
-			selected_list = g_list_prepend (selected_list, 
-							glade_widget_get_from_gobject (l->data));
-	}
+	glade_property_get (eprop->property, &selected_objects);
+	for (l = selected_objects; l; l = l->next)
+		selected_list = g_list_prepend (selected_list, 
+						glade_widget_get_from_gobject (l->data));
+
 	glade_eprop_object_populate_view (project, GTK_TREE_VIEW (tree_view),
 					  selected_list, exception_list,
 					  eprop->klass->pspec->value_type,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]