diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-06-11 19:11:00 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-06-11 22:18:33 (GMT) |
commit | fa9bd795fff3785858d19a55abb9c0906ce4f13d (patch) | |
tree | 198d7af7f4aab3532aa6a085594e03cbeb3ceef2 /fontcombobox.py | |
parent | 9062e824d6064077767f7038b42305d6c2303460 (diff) |
The font widgets should not catch focus
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'fontcombobox.py')
-rw-r--r-- | fontcombobox.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fontcombobox.py b/fontcombobox.py index 0ae4d0f..747dc9a 100644 --- a/fontcombobox.py +++ b/fontcombobox.py @@ -57,6 +57,7 @@ class FontComboBox(Gtk.ToolItem): Gtk.ToolItem.__init__(self) self._font_label = FontLabel() bt = Gtk.Button('') + bt.set_can_focus(False) bt.remove(bt.get_children()[0]) box = Gtk.HBox() bt.add(box) @@ -226,6 +227,7 @@ class FontSize(Gtk.ToolItem): # add a vbox to set the padding up and down vbox.pack_start(hbox, True, True, default_padding) self._size_down = Gtk.Button() + self._size_down.set_can_focus(False) icon = Icon(icon_name='resize-') self._size_down.set_image(icon) self._size_down.connect('clicked', self.__font_sizes_cb, False) @@ -239,6 +241,7 @@ class FontSize(Gtk.ToolItem): hbox.pack_start(self._size_label, False, False, 10) self._size_up = Gtk.Button() + self._size_up.set_can_focus(False) icon = Icon(icon_name='resize+') self._size_up.set_image(icon) self._size_up.connect('clicked', self.__font_sizes_cb, True) |