Simplify loading of pages

merge-requests/64/head
Hugo Posnic 2017-05-25 16:34:18 +02:00
parent 2b2822bcbe
commit c9d6e7287d
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ class Hello():
self.builder.get_object("aboutdialog").set_logo(logo) self.builder.get_object("aboutdialog").set_logo(logo)
# Create pages # Create pages
self.pages = ("readme", "release", "involved") self.pages = os.listdir("{}/pages/{}".format(self.preferences["data_path"],
self.preferences["default_locale"]))
for page in self.pages: for page in self.pages:
scrolled_window = Gtk.ScrolledWindow() scrolled_window = Gtk.ScrolledWindow()
viewport = Gtk.Viewport(border_width=10) viewport = Gtk.Viewport(border_width=10)