[glade3] gladeui: Fix a Gtk-Critical in GladePalette
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] gladeui: Fix a Gtk-Critical in GladePalette
- Date: Fri, 14 May 2010 22:01:32 +0000 (UTC)
commit e99e1138a55b38fc792422bd9f5c45325ba56505
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]