diff --git a/ChangeLog b/ChangeLog index 5c2da1ff58..46d2c82f75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-09 Matthias Clasen + + * gtk/gtkmain.c: + * gtk/gtkstatusicon.c: Trivial coding style fixes. + 2007-11-08 Matthias Clasen * gtk/gtkbuilder.c: don't leak 'filename' field memory when loading diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 47d615546c..c6972381d4 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -652,11 +652,10 @@ do_post_parse_initialization (int *argc, * it isn't default:LTR or default:RTL it will not work */ char *e = _("default:LTR"); - if (strcmp (e, "default:RTL")==0) { + if (strcmp (e, "default:RTL")==0) gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL); - } else if (strcmp (e, "default:LTR")) { + else if (strcmp (e, "default:LTR")) g_warning ("Whoever translated default:LTR did so wrongly.\n"); - } } gtk_type_init (0); diff --git a/gtk/gtkstatusicon.c b/gtk/gtkstatusicon.c index 3bc3fff8c0..8e607f15a5 100755 --- a/gtk/gtkstatusicon.c +++ b/gtk/gtkstatusicon.c @@ -1691,10 +1691,11 @@ gtk_status_icon_set_visible (GtkStatusIcon *status_icon, #ifdef GDK_WINDOWING_X11 if (visible) gtk_widget_show (priv->tray_icon); - else if (GTK_WIDGET_REALIZED (priv->tray_icon)) { - gtk_widget_hide (priv->tray_icon); - gtk_widget_unrealize (priv->tray_icon); - } + else if (GTK_WIDGET_REALIZED (priv->tray_icon)) + { + gtk_widget_hide (priv->tray_icon); + gtk_widget_unrealize (priv->tray_icon); + } #endif #ifdef GDK_WINDOWING_WIN32 if (priv->nid.hWnd != NULL)