[glade3/project-tree-model: 3/7] gladeui: Fix a Gtk-Critical in GladePalette



commit 3981214a8f24985b2ad4ebc1e9172d0aec939497
Author: Johannes Schmid <jhs gnome org>
Date:   Sun Apr 18 10:54:07 2010 +0200

    gladeui: Fix a Gtk-Critical in GladePalette
    
    Actually gtk+ should provide a gtk_tool_item_group_new_with_label_widget() method but
    it doesn't and using the construct properties seems broken.

 gladeui/glade-palette.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gladeui/glade-palette.c b/gladeui/glade-palette.c
index d3b3a96..805f9ce 100644
--- a/gladeui/glade-palette.c
+++ b/gladeui/glade-palette.c
@@ -604,9 +604,9 @@ glade_palette_new_item_group (GladePalette *palette, GladeWidgetGroup *group)
 	gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
 	gtk_widget_show (label);
 
-	item_group = (GtkWidget *)g_object_new (GTK_TYPE_TOOL_ITEM_GROUP,
-						"label-widget", label,
-						NULL);
+	item_group = gtk_tool_item_group_new ("");
+	gtk_tool_item_group_set_label_widget (GTK_TOOL_ITEM_GROUP (item_group),
+	                                      label);
 
 	/* Tell the item group to ellipsize our custom label for us */
 	gtk_tool_item_group_set_ellipsize (GTK_TOOL_ITEM_GROUP (item_group), 



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