[Xfce4-commits] <terminal:master> Small code cleanup.
Nick Schermer
nick at xfce.org
Wed Aug 12 18:06:01 CEST 2009
Updating branch refs/heads/master
to 7a12e1638b9053e2a09d9196f358555faed52be2 (commit)
from 39296442e661396416ab02d4bb8fb8cbc159eeee (commit)
commit 7a12e1638b9053e2a09d9196f358555faed52be2
Author: Nick Schermer <nick at xfce.org>
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);
}
}
More information about the Xfce4-commits
mailing list