]> Pileus Git - ~andy/gtk/commitdiff
Fix custom label handling in gtktoolitemgroup
authorJohannes Schmid <jhs@gnome.org>
Wed, 28 Oct 2009 12:11:37 +0000 (13:11 +0100)
committerJohannes Schmid <jhs@gnome.org>
Wed, 28 Oct 2009 12:11:37 +0000 (13:11 +0100)
gtk/gtktoolitemgroup.c

index 3dffddf717f0f11419d05784a620a72e30279497..ca5a931f0caf700af85e41d1fd6be7956c2daed0 100644 (file)
@@ -555,7 +555,7 @@ gtk_tool_item_group_size_request (GtkWidget      *widget,
   GtkRequisition item_size;
   gint requested_rows;
 
-  if (priv->children && gtk_tool_item_group_get_label (group))
+  if (priv->children && gtk_tool_item_group_get_label_widget (group))
     {
       gtk_widget_size_request (priv->header, requisition);
       gtk_widget_show (priv->header);
@@ -1730,13 +1730,10 @@ gtk_tool_item_group_set_label_widget (GtkToolItemGroup *group,
   if (label_widget)
     {
       gtk_container_add (GTK_CONTAINER (alignment), label_widget);
-
-      /*
-      if (priv->prelight)
-       gtk_widget_set_state (label_widget, GTK_STATE_PRELIGHT);
-      */
     }
 
+  priv->label_widget = label_widget;
+  
   if (GTK_WIDGET_VISIBLE (group))
     gtk_widget_queue_resize (GTK_WIDGET (group));