redefine reload to reset
parent
80a2edfa50
commit
b63a798730
|
@ -71,6 +71,7 @@ class Browser(Gtk.Box):
|
|||
title_image.set_size_request(100, 100)
|
||||
title_image.set_from_file("/usr/share/icons/manjaro/maia/96x96.png")
|
||||
self.title_box.pack_start(title_image, expand=False, fill=False, padding=0)
|
||||
|
||||
# label with hello and stand alone
|
||||
self.title_label = Gtk.Label()
|
||||
self.title_label.set_markup("<big>Manjaro Application Maintenance</big>\n"
|
||||
|
@ -79,7 +80,7 @@ class Browser(Gtk.Box):
|
|||
self.title_box.pack_start(self.title_label, expand=True, fill=True, padding=0)
|
||||
|
||||
# pack title box to main box
|
||||
self.app_browser_box.pack_start(self.title_box, expand=False, fill=False, padding=0)
|
||||
self.app_browser_box.pack_start(self.title_box, expand=True, fill=True, padding=0)
|
||||
|
||||
# button box
|
||||
self.button_box = Gtk.Box(spacing=10)
|
||||
|
@ -94,9 +95,10 @@ class Browser(Gtk.Box):
|
|||
download_button.set_tooltip_text("Download the most recent selection of packages...")
|
||||
download_button.connect("clicked", self.on_download_clicked)
|
||||
|
||||
# reload button
|
||||
reload_button = Gtk.Button(label="reload")
|
||||
reload_button.connect("clicked", self.on_reload_clicked)
|
||||
# reset button
|
||||
reset_button = Gtk.Button(label="reset")
|
||||
download_button.set_tooltip_text("Resete your current selections...")
|
||||
reset_button.connect("clicked", self.on_reload_clicked)
|
||||
|
||||
# update system button
|
||||
self.update_system_button = Gtk.Button(label="UPDATE SYSTEM")
|
||||
|
@ -113,17 +115,24 @@ class Browser(Gtk.Box):
|
|||
group_combo.pack_start(renderer_text, True)
|
||||
group_combo.add_attribute(renderer_text, "text", 0)
|
||||
group_combo.set_active(0)
|
||||
self.button_box.pack_start(group_combo, False, False, 0)
|
||||
self.button_box.pack_end(self.update_system_button, expand=False, fill=False, padding=10)
|
||||
|
||||
# pack group combo combo
|
||||
self.button_box.pack_start(group_combo, False, False, 10)
|
||||
# pack update system button
|
||||
self.button_box.pack_end(self.update_system_button, expand=False, fill=False, padding=10)
|
||||
# with Hello, we have btn "HOME"
|
||||
if not isinstance(self.config, HelloConfig):
|
||||
# create clos button if stand alone
|
||||
close_button = Gtk.Button(label="close")
|
||||
close_button.set_tooltip_text("Discard selections and close app...")
|
||||
close_button.connect("clicked", self.on_close_clicked)
|
||||
# pack close button
|
||||
self.button_box.pack_end(close_button, expand=False, fill=False, padding=10)
|
||||
self.button_box.pack_end(reload_button, expand=False, fill=False, padding=10)
|
||||
# pack reload button
|
||||
self.button_box.pack_end(reset_button, expand=False, fill=False, padding=10)
|
||||
# pack download button
|
||||
self.button_box.pack_end(download_button, expand=False, fill=False, padding=10)
|
||||
# pack advanced button
|
||||
self.button_box.pack_end(advanced_button, expand=False, fill=False, padding=10)
|
||||
|
||||
# pack app browser
|
||||
|
|
Loading…
Reference in New Issue