[gtranslator] Give priority for now to the window accelerators.



commit 0c8b754325be3be655a67aa1acb4e2bf6c49ec53
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Mar 28 22:16:19 2011 +0200

    Give priority for now to the window accelerators.
    
    Most of the shortcuts used in gtranslator are already taken by
    the widgets so we would have to override them etc. For now
    we give priority to the window ones.

 src/gtr-window.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index c79c376..299f0b5 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1999,6 +1999,8 @@ gtr_window_configure_event (GtkWidget * widget, GdkEventConfigure * event)
                                                                       event);
 }
 
+#if 0
+FIXME: for now we are giving priority to the window accels
 /*
  * GtkWindow catches keybindings for the menu items _before_ passing them to
  * the focused widget. This is unfortunate and means that pressing ctrl+V
@@ -2032,6 +2034,7 @@ gtr_window_key_press_event (GtkWidget   *widget,
 
   return handled;
 }
+#endif
 
 static void
 gtr_window_class_init (GtrWindowClass * klass)
@@ -2045,7 +2048,7 @@ gtr_window_class_init (GtrWindowClass * klass)
   object_class->dispose = gtr_window_dispose;
 
   widget_class->configure_event = gtr_window_configure_event;
-  widget_class->key_press_event = gtr_window_key_press_event;
+  /*widget_class->key_press_event = gtr_window_key_press_event;*/
 }
 
 /***************************** Public funcs ***********************************/



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