Change layout to handle pages

merge-requests/64/head
Huluti 2016-12-04 22:38:53 +01:00
parent aff2136bcb
commit fb1cdcba0c
2 changed files with 42 additions and 38 deletions

View File

@ -428,16 +428,20 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="shadow_type">in</property> <property name="shadow_type">in</property>
<child> <child>
<object class="GtkTextView" id="readmetext"> <object class="GtkViewport">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">False</property>
<property name="editable">False</property> <child>
<property name="wrap_mode">word</property> <object class="GtkLabel" id="readmetext">
<property name="left_margin">10</property> <property name="visible">True</property>
<property name="right_margin">10</property> <property name="can_focus">False</property>
<property name="top_margin">10</property> <property name="margin_left">10</property>
<property name="bottom_margin">10</property> <property name="margin_right">10</property>
<property name="cursor_visible">False</property> <property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="wrap">True</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
@ -461,16 +465,20 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="shadow_type">in</property> <property name="shadow_type">in</property>
<child> <child>
<object class="GtkTextView" id="releasetext"> <object class="GtkViewport">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">False</property>
<property name="editable">False</property> <child>
<property name="wrap_mode">word</property> <object class="GtkLabel" id="releasetext">
<property name="left_margin">10</property> <property name="visible">True</property>
<property name="right_margin">10</property> <property name="can_focus">False</property>
<property name="top_margin">10</property> <property name="margin_left">10</property>
<property name="bottom_margin">10</property> <property name="margin_right">10</property>
<property name="cursor_visible">False</property> <property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="wrap">True</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
@ -517,16 +525,20 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="shadow_type">in</property> <property name="shadow_type">in</property>
<child> <child>
<object class="GtkTextView" id="involvedtext"> <object class="GtkViewport">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">False</property>
<property name="editable">False</property> <child>
<property name="wrap_mode">word</property> <object class="GtkLabel" id="involvedtext">
<property name="left_margin">10</property> <property name="visible">True</property>
<property name="right_margin">10</property> <property name="can_focus">False</property>
<property name="top_margin">10</property> <property name="margin_left">10</property>
<property name="bottom_margin">10</property> <property name="margin_right">10</property>
<property name="cursor_visible">False</property> <property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="wrap">True</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>

View File

@ -43,17 +43,9 @@ class ManjaroHello(Gtk.Window):
self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + self.infos["arch"] self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + self.infos["arch"]
text_buffer = Gtk.TextBuffer() self.builder.get_object("readmetext").set_text(self.read_data("readme"))
text_buffer.set_text(self.read_data("readme"), -1) self.builder.get_object("releasetext").set_text(self.read_data("release"))
self.builder.get_object("readmetext").set_buffer(text_buffer) self.builder.get_object("involvedtext").set_text(self.read_data("involved"))
text_buffer = Gtk.TextBuffer()
text_buffer.set_text(self.read_data("release"), -1)
self.builder.get_object("releasetext").set_buffer(text_buffer)
text_buffer = Gtk.TextBuffer()
text_buffer.set_text(self.read_data("involved"), -1)
self.builder.get_object("involvedtext").set_buffer(text_buffer)
self.builder.get_object("autostart").set_active(self.preferences["autostart"]) self.builder.get_object("autostart").set_active(self.preferences["autostart"])