Stylistic fixes

svn path=/trunk/; revision=18974
This commit is contained in:
Matthias Clasen 2007-11-09 16:56:17 +00:00
parent fb4b0ddff7
commit b2ad97dd38
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);

View File

@ -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)