changeset be15ffa79565 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=be15ffa79565
description: [dpapavas] Improvements for Emacs Gtk binding theme. Fixes #7254

diffstat:

 src/message_window.py |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 417b94c33649 -r be15ffa79565 src/message_window.py
--- a/src/message_window.py     Mon Oct 29 15:11:16 2012 +0100
+++ b/src/message_window.py     Thu Nov 08 12:09:13 2012 +0100
@@ -350,8 +350,10 @@
         # CTRL mask
         if modifier & gtk.gdk.CONTROL_MASK:
             if keyval == gtk.keysyms.h: # CTRL + h
-                control._on_history_menuitem_activate()
-                return True
+                if gtk.settings_get_default().get_property(
+                'gtk-key-theme-name') != 'Emacs':
+                    control._on_history_menuitem_activate()
+                    return True
             elif control.type_id == message_control.TYPE_CHAT and \
             keyval == gtk.keysyms.f: # CTRL + f
                 # CTRL + f moves cursor one char forward when user uses Emacs
@@ -431,8 +433,10 @@
                 control.show_emoticons_menu()
                 return True
             elif keyval == gtk.keysyms.d: # ALT + D show actions menu
-                control.on_actions_button_clicked(control.actions_button)
-                return True
+                if gtk.settings_get_default().get_property(
+                'gtk-key-theme-name') != 'Emacs':
+                    control.on_actions_button_clicked(control.actions_button)
+                    return True
             elif control.type_id == message_control.TYPE_GC and \
             keyval == gtk.keysyms.t: # ALT + t
                 control._on_change_subject_menuitem_activate(None)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to