[gnome-terminal] keybindings: Fix next/previous tab keybinding



commit 195d391ef2fc4d34e242e2d40b15d2ea950ef81d
Author: Christian Persch <chpe gnome org>
Date:   Mon Jan 14 18:01:43 2013 +0100

    keybindings: Fix next/previous tab keybinding
    
    This was broken by the switch to TerminalNotebook.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691059

 src/terminal-window.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 7935a4f..b76c7cf 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3484,7 +3484,6 @@ tabs_next_or_previous_tab_cb (GtkAction *action,
                               TerminalWindow *window)
 {
   TerminalWindowPrivate *priv = window->priv;
-  GtkWidgetClass *klass;
   const char *name;
   guint keyval = 0;
 
@@ -3495,12 +3494,10 @@ tabs_next_or_previous_tab_cb (GtkAction *action,
     keyval = GDK_KEY_Page_Up;
   }
 
-  /* FIXMEchpe GtkNotebook specific? */
-  klass = GTK_WIDGET_GET_CLASS (GTK_WIDGET (priv->mdi_container));
-  gtk_binding_set_activate (gtk_binding_set_by_class (klass),
-                            keyval,
-                            GDK_CONTROL_MASK,
-                            G_OBJECT (priv->mdi_container));
+  /* FIXMEchpe this is GtkNotebook specific */
+  gtk_bindings_activate (G_OBJECT (priv->mdi_container),
+                         keyval,
+                         GDK_CONTROL_MASK);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]