Updating branch refs/heads/master
         to 7a12e1638b9053e2a09d9196f358555faed52be2 (commit)
       from 39296442e661396416ab02d4bb8fb8cbc159eeee (commit)

commit 7a12e1638b9053e2a09d9196f358555faed52be2
Author: Nick Schermer <[email protected]>
Date:   Wed Aug 12 18:05:09 2009 +0200

    Small code cleanup.

 terminal/terminal-window.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 2471601..738b6bd 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -767,10 +767,9 @@ terminal_window_rebuild_gomenu (TerminalWindow *window)
         {
           g_snprintf (name, sizeof (name), "accel-switch-to-tab%d", n);
           action = gtk_action_group_get_action (window->action_group, name);
-          if (G_LIKELY (action != NULL))
-            gtk_action_group_remove_action (window->action_group, action);
-          else
+          if (G_UNLIKELY (action == NULL))
             break;
+          gtk_action_group_remove_action (window->action_group, action);
         }
     }
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to