]> Pileus Git - ~andy/gtk/commitdiff
toolpalettte: Fixed some style issues
authorJohannes Schmid <jhs@gnome.org>
Wed, 11 Nov 2009 08:32:15 +0000 (09:32 +0100)
committerJohannes Schmid <jhs@gnome.org>
Wed, 11 Nov 2009 08:32:15 +0000 (09:32 +0100)
gtk/gtktoolitemgroup.c

index 073228b6d4226d9ad7a0b87f4ac7d9bcad95fc32..53f39e366829f68061c275a5605c0c872c87f4c6 100644 (file)
@@ -203,10 +203,8 @@ gtk_tool_item_group_settings_change_notify (GtkSettings      *settings,
                                             const GParamSpec *pspec,
                                             GtkToolItemGroup *group)
 {
-  if (! strcmp (pspec->name, "gtk-enable-animations"))
-  {
+  if (strcmp (pspec->name, "gtk-enable-animations") == 0)
     animation_change_notify (group);
-  }
 }
 
 static void
@@ -1663,9 +1661,7 @@ gtk_tool_item_group_set_label (GtkToolItemGroup *group,
   g_return_if_fail (GTK_IS_TOOL_ITEM_GROUP (group));
 
   if (!label)
-    {
-      gtk_tool_item_group_set_label_widget (group, NULL);
-    }
+    gtk_tool_item_group_set_label_widget (group, NULL);
   else
     {
       GtkWidget *child = gtk_label_new (label);
@@ -1713,9 +1709,7 @@ gtk_tool_item_group_set_label_widget (GtkToolItemGroup *group,
 
 
   if (label_widget)
-    {
       gtk_container_add (GTK_CONTAINER (alignment), label_widget);
-    }
 
   priv->label_widget = label_widget;