diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-06-11 19:13:33 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-08-05 20:37:42 (GMT) |
commit | 153a18609f4b70d98b416443903551e91ee855b3 (patch) | |
tree | 90f7de21bc5b08c085a05dde14c6d2ff5dcc38fa | |
parent | ec6b6102f15638b3c990e63249865285b4a25e1d (diff) |
The font widgets should not catch focus
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-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) |