pack experiment

merge-requests/65/head
fhdk 2018-09-08 17:40:11 +02:00
parent 5313af124c
commit 2e0747c688
1 changed files with 3 additions and 4 deletions

View File

@ -59,24 +59,23 @@ class Browser(Gtk.Box):
self.detail_box.set_show_close_button(True)
self.detail_box.set_revealed(True)
self.detail_box.connect("response", self.on_remove_detail_box)
self.app_browser_box.pack_end(self.detail_box, expand=False, fill=False, padding=0)
# pack detail box
self.app_browser_box.pack_start(self.detail_box, expand=False, fill=False, padding=0)
self.detail_label = Gtk.Label()
self.detail_label.set_line_wrap(True)
self.detail_box.pack_start(self.detail_label, expand=False, fill=False, padding=0)
self.detail_box.pack_start(self.detail_label, expand=True, fill=True, padding=0)
else:
# stand alone title box
self.title_box = Gtk.Box()
title_image = Gtk.Image()
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"
"Select/Deselect apps you want to install/remove.\n"
"Click <b>UPDATE SYSTEM</b> button when ready.")
# self.title_box.pack_start(title_image, expand=False, fill=False, padding=0)
self.title_box.pack_start(self.title_label, expand=True, fill=True, padding=0)
# pack title box to main box