ui: add quit button to main window

This commit is contained in:
Peter F. Patel-Schneider 2020-02-09 10:00:20 -05:00 committed by Filipe Laíns
parent 8fb52a3f37
commit e23de2ee9f
1 changed files with 4 additions and 0 deletions

View File

@ -306,6 +306,10 @@ def _create_window_layout():
bottom_buttons_box = Gtk.ButtonBox(Gtk.Orientation.HORIZONTAL)
bottom_buttons_box.set_layout(Gtk.ButtonBoxStyle.START)
bottom_buttons_box.set_spacing(20)
quit_button = _new_button(_("Quit") + ' ' + NAME, 'application-exit',
icon_size=_SMALL_BUTTON_ICON_SIZE, clicked=destroy)
bottom_buttons_box.add(quit_button)
about_button = _new_button(_("About") + ' ' + NAME, 'help-about',
icon_size=_SMALL_BUTTON_ICON_SIZE, clicked=_show_about_window)
bottom_buttons_box.add(about_button)