[gtk+/toolpalette] toolpalettte: Fixed some style issues
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/toolpalette] toolpalettte: Fixed some style issues
- Date: Wed, 11 Nov 2009 08:43:19 +0000 (UTC)
commit 3b2ae9dc3e2d31da0bb31a529a3ca1801bd7ddad
Author: Johannes Schmid <jhs gnome org>
Date: Wed Nov 11 09:32:15 2009 +0100
toolpalettte: Fixed some style issues
gtk/gtktoolitemgroup.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 073228b..53f39e3 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]