[Xfce4-commits] <xfce4-xkb-plugin:master> Don't mix declaration and code.

Jérôme Guelfucci noreply at xfce.org
Thu Apr 28 21:26:08 CEST 2011


Updating branch refs/heads/master
         to 01fbe71dc2a41876105f8371811d0973b0dbbf2f (commit)
       from d6fcf8c9c32ef7a762c53541227159ebf1d7b244 (commit)

commit 01fbe71dc2a41876105f8371811d0973b0dbbf2f
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Apr 28 19:33:53 2011 +0200

    Don't mix declaration and code.

 panel-plugin/xfce4-xkb-plugin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/xfce4-xkb-plugin.c b/panel-plugin/xfce4-xkb-plugin.c
index 3f63ae9..880ab90 100644
--- a/panel-plugin/xfce4-xkb-plugin.c
+++ b/panel-plugin/xfce4-xkb-plugin.c
@@ -353,8 +353,6 @@ xkb_calculate_sizes (t_xkb *xkb, GtkOrientation orientation, gint panel_size)
 static void
 xkb_initialize_menu (t_xkb *xkb)
 {
-    if (G_UNLIKELY (xkb == NULL)) return;
-
     gint i;
     RsvgHandle *handle;
     GdkPixbuf *pixbuf, *tmp;
@@ -362,6 +360,8 @@ xkb_initialize_menu (t_xkb *xkb)
     GtkWidget *image;
     GtkWidget *menu_item;
 
+    if (G_UNLIKELY (xkb == NULL)) return;
+
     xkb->popup = gtk_menu_new ();
     for (i = 0; i < xkb_config_get_group_count (); i++)
     {



More information about the Xfce4-commits mailing list