diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/desktop/activitieslist.py | 7 | ||||
-rw-r--r-- | src/jarabe/journal/listview.py | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py index b111164..b830526 100644 --- a/src/jarabe/desktop/activitieslist.py +++ b/src/jarabe/desktop/activitieslist.py @@ -333,11 +333,16 @@ class ClearMessageBox(Gtk.EventBox): box.pack_start(label, expand=True, fill=False, padding=0) label.show() + button_box = Gtk.HButtonBox() + button_box.set_layout(Gtk.ButtonBoxStyle.CENTER) + box.pack_start(button_box, False, True, 0) + button_box.show() + button = Gtk.Button(label=_('Clear search')) button.connect('clicked', button_callback) button.props.image = Icon(icon_name='dialog-cancel', icon_size=Gtk.IconSize.BUTTON) - box.pack_start(button, expand=True, fill=False, padding=0) + button_box.pack_start(button, expand=True, fill=False, padding=0) button.show() diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py index 46c3440..917beb0 100644 --- a/src/jarabe/journal/listview.py +++ b/src/jarabe/journal/listview.py @@ -403,11 +403,16 @@ class BaseListView(Gtk.Bin): box.pack_start(label, expand=True, fill=False, padding=0) if show_clear_query: + button_box = Gtk.HButtonBox() + button_box.set_layout(Gtk.ButtonBoxStyle.CENTER) + box.pack_start(button_box, False, True, 0) + button_box.show() + button = Gtk.Button(label=_('Clear search')) button.connect('clicked', self.__clear_button_clicked_cb) button.props.image = Icon(icon_name='dialog-cancel', icon_size=Gtk.IconSize.BUTTON) - box.pack_start(button, expand=True, fill=False, padding=0) + button_box.pack_start(button, expand=True, fill=False, padding=0) background_box.show_all() |