changeset 66471f38503c in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=66471f38503c 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 a8ab5806dbf4 -r 66471f38503c src/message_window.py --- a/src/message_window.py Tue Jan 29 10:27:51 2013 +0100 +++ b/src/message_window.py Thu Nov 08 12:09:13 2012 +0100 @@ -351,8 +351,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 @@ -432,8 +434,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)