[Xfce4-commits] [xfce/xfdesktop] 14/35: Code formatting

noreply at xfce.org noreply at xfce.org
Sun May 17 11:38:02 CEST 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch xfce-4.12
in repository xfce/xfdesktop.

commit d76f5b34c0087969a12bf6fbb90ca2fa528f512d
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Fri Mar 20 15:40:08 2015 +0100

    Code formatting
---
 src/windowlist.c |   36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/windowlist.c b/src/windowlist.c
index 0b387af..7140eb8 100644
--- a/src/windowlist.c
+++ b/src/windowlist.c
@@ -126,7 +126,7 @@ static void
 mi_destroyed_cb(GtkWidget *object, gpointer user_data)
 {
     g_object_weak_unref(G_OBJECT(user_data),
-            (GWeakNotify)window_destroyed_cb, object);
+                        (GWeakNotify)window_destroyed_cb, object);
 }
 
 static void
@@ -141,10 +141,10 @@ menulist_set_label_flags(GtkWidget *widget, gpointer data)
         gtk_label_set_ellipsize(label, PANGO_ELLIPSIZE_MIDDLE);
         gtk_label_set_max_width_chars(label, 24);
         *done = TRUE;
-    }
-    else if(GTK_IS_CONTAINER (widget))
+    } else if(GTK_IS_CONTAINER (widget)) {
         gtk_container_forall(GTK_CONTAINER (widget), menulist_set_label_flags,
-                              &done);
+                             &done);
+    }
 }
 
 static GtkWidget *
@@ -290,8 +290,7 @@ windowlist_populate(XfceDesktop *desktop,
             /* center the workspace header */
             gtk_misc_set_alignment(GTK_MISC(label), 0.44f, 0);
             /* If it's not the active workspace, make the color insensitive */
-            if(wnck_workspace != active_workspace)
-            {
+            if(wnck_workspace != active_workspace) {
                 GtkWidget *lbl = gtk_bin_get_child(GTK_BIN(mi));
                 gtk_widget_modify_fg(lbl, GTK_STATE_NORMAL,
                                      &(style->fg[GTK_STATE_INSENSITIVE]));
@@ -316,11 +315,10 @@ windowlist_populate(XfceDesktop *desktop,
             wnck_window = l->data;
             
             if((wnck_window_get_workspace(wnck_window) != wnck_workspace
-                        && (!wnck_window_is_sticky(wnck_window)
-                            || (wl_sticky_once
-                                && wnck_workspace != active_workspace)))
-                    || wnck_window_is_skip_pager(wnck_window)
-                    || wnck_window_is_skip_tasklist(wnck_window))
+                && (!wnck_window_is_sticky(wnck_window)
+                    || (wl_sticky_once && wnck_workspace != active_workspace)))
+                || wnck_window_is_skip_pager(wnck_window)
+                || wnck_window_is_skip_tasklist(wnck_window))
             {
                 /* the window isn't on the current WS AND isn't sticky,
                  * OR,
@@ -336,21 +334,22 @@ windowlist_populate(XfceDesktop *desktop,
                 continue;
 
             if(wnck_workspace != active_workspace
-               && (!wnck_window_is_sticky(wnck_window) || wnck_workspace != active_workspace))
+               && (!wnck_window_is_sticky(wnck_window)
+                   || wnck_workspace != active_workspace))
             {
                 GtkWidget *lbl = gtk_bin_get_child(GTK_BIN(mi));
                 gtk_widget_modify_fg(lbl, GTK_STATE_NORMAL,
-                        &(style->fg[GTK_STATE_INSENSITIVE]));
+                                     &(style->fg[GTK_STATE_INSENSITIVE]));
             }
 
             gtk_widget_show(mi);
             gtk_menu_shell_append(GTK_MENU_SHELL(submenu), mi);
             g_object_weak_ref(G_OBJECT(wnck_window),
-                    (GWeakNotify)window_destroyed_cb, mi);
+                              (GWeakNotify)window_destroyed_cb, mi);
             g_signal_connect(G_OBJECT(mi), "activate",
-                    G_CALLBACK(activate_window), wnck_window);
+                             G_CALLBACK(activate_window), wnck_window);
             g_signal_connect(G_OBJECT(mi), "destroy",
-                    G_CALLBACK(mi_destroyed_cb), wnck_window);
+                             G_CALLBACK(mi_destroyed_cb), wnck_window);
         }
         
         if(!wl_submenus && (i < nworkspaces-1 || wl_add_remove_options)) {
@@ -371,7 +370,7 @@ windowlist_populate(XfceDesktop *desktop,
         gtk_widget_show(mi);
         gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
         g_signal_connect(G_OBJECT(mi), "activate",
-                G_CALLBACK(set_num_workspaces), GINT_TO_POINTER(nworkspaces+1));
+                         G_CALLBACK(set_num_workspaces), GINT_TO_POINTER(nworkspaces+1));
     
         /* 'remove workspace' item */
         if(!ws_name || atoi(ws_name) == nworkspaces)
@@ -393,7 +392,8 @@ windowlist_populate(XfceDesktop *desktop,
         gtk_widget_show(mi);
         gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
         g_signal_connect(G_OBJECT(mi), "activate",
-                G_CALLBACK(set_num_workspaces), GINT_TO_POINTER(nworkspaces-1));
+                         G_CALLBACK(set_num_workspaces),
+                         GINT_TO_POINTER(nworkspaces-1));
     }
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list