[Xfce4-commits] <terminal:master> Use the cache action for the accelmap fix.
Nick Schermer
noreply at xfce.org
Wed Dec 26 20:48:01 CET 2012
Updating branch refs/heads/master
to adc59a2391d5ff2fdb8837556c034c7198822c71 (commit)
from 5fa703427e62513e9690945a13dd467aabf8f610 (commit)
commit adc59a2391d5ff2fdb8837556c034c7198822c71
Author: Nick Schermer <nick at xfce.org>
Date: Wed Dec 26 20:45:33 2012 +0100
Use the cache action for the accelmap fix.
terminal/terminal-window.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index acd23bd..1521e9e 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -681,19 +681,17 @@ terminal_window_accel_activate (GtkAccelGroup *accel_group,
GdkModifierType accel_mods,
TerminalWindow *window)
{
- GtkAction *action;
- const gchar *names[] = { "prev-tab", "next-tab" };
+ GtkAction *actions[] = { window->action_prev_tab, window->action_next_tab };
guint n;
GtkAccelKey key;
- for (n = 0; n < G_N_ELEMENTS (names); n++)
+ for (n = 0; n < G_N_ELEMENTS (actions); n++)
{
/* pretend we handled the accelerator if the event matches one of
* the insensitive actions, so we don't send weird key events to vte
* see http://bugzilla.xfce.org/show_bug.cgi?id=3715 */
- action = gtk_action_group_get_action (window->action_group, names[n]);
- if (!gtk_action_is_sensitive (action)
- && gtk_accel_map_lookup_entry (gtk_action_get_accel_path (action), &key)
+ if (!gtk_action_is_sensitive (actions[n])
+ && gtk_accel_map_lookup_entry (gtk_action_get_accel_path (actions[n]), &key)
&& key.accel_key == accel_key
&& key.accel_mods == accel_mods)
return TRUE;
More information about the Xfce4-commits
mailing list