Commit b2ad97dd authored by Matthias Clasen's avatar Matthias Clasen

Stylistic fixes

svn path=/trunk/; revision=18974
parent fb4b0ddf
2007-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c:
* gtk/gtkstatusicon.c: Trivial coding style fixes.
2007-11-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilder.c: don't leak 'filename' field memory when loading
......
......@@ -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);
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment