Commit e94597f8 authored by Avi Wadhwa's avatar Avi Wadhwa
Browse files

reorder stacks alphabetically and make about dialog transient to window

parent e93fca77
......@@ -152,17 +152,19 @@ class OrganizerWindow(Gtk.ApplicationWindow):
sidebar = GtkTemplate.Child()
scrolled_start_screen = GtkTemplate.Child()
spinner = Gtk.Spinner()
# all lists
application_list = GtkTemplate.Child()
archives_list = GtkTemplate.Child()
audio_list = GtkTemplate.Child()
ebooks_list = GtkTemplate.Child()
font_list = GtkTemplate.Child()
image_list = GtkTemplate.Child()
text_list = GtkTemplate.Child()
video_list = GtkTemplate.Child()
archives_list = GtkTemplate.Child()
illustrations_list = GtkTemplate.Child()
image_list = GtkTemplate.Child()
presentations_list = GtkTemplate.Child()
spreadsheets_list = GtkTemplate.Child()
ebooks_list = GtkTemplate.Child()
text_list = GtkTemplate.Child()
video_list = GtkTemplate.Child()
#TODO open popover with all ListBox's, see how Lollypop does it
#file_popover = Gtk.Builder().add_objects_from_resource("/avi/wad/Organizer/window.ui", "file_popover")
__gtype_name__ = 'OrganizerWindow'
......@@ -241,11 +243,12 @@ class OrganizerWindow(Gtk.ApplicationWindow):
dialog.set_logo_icon_name(None)
dialog.set_license_type(Gtk.License.GPL_3_0)
dialog.set_program_name(_('Organizer'))
dialog.set_program_name(('Organizer'))
dialog.set_translator_credits(_('translator-credits'))
dialog.set_version('0.1')
dialog.set_comments(_('Organizes your files'))
dialog.set_website('https://gitlab.gnome.org/aviwad/organizer')
dialog.set_transient_for(self)
dialog.run()
dialog.destroy()
......
......@@ -568,7 +568,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="HdyColumn" id="application_column">
<object class="HdyColumn" id="archives_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -602,12 +602,11 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="application_list">
<object class="GtkListBox" id="archives_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="selection_mode">none</property>
<signal name="row-activated" handler="activated" swapped="no"/>
</object>
</child>
<child type="label_item">
......@@ -689,12 +688,12 @@
</child>
</object>
<packing>
<property name="name">Other</property>
<property name="title" translatable="yes">Other</property>
<property name="name">Archives</property>
<property name="title" translatable="yes">Archives</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="audio_column">
<object class="HdyColumn" id="ebooks_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -728,7 +727,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="audio_list">
<object class="GtkListBox" id="ebooks_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -814,8 +813,8 @@
</child>
</object>
<packing>
<property name="name">Music</property>
<property name="title" translatable="yes">Music</property>
<property name="name">Ebooks</property>
<property name="title" translatable="yes">Ebooks</property>
<property name="position">1</property>
</packing>
</child>
......@@ -946,7 +945,7 @@
</packing>
</child>
<child>
<object class="HdyColumn" id="image_column">
<object class="HdyColumn" id="illustrations_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -980,7 +979,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="image_list">
<object class="GtkListBox" id="illustrations_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1066,13 +1065,13 @@
</child>
</object>
<packing>
<property name="name">Images</property>
<property name="title" translatable="yes">Images</property>
<property name="name">Illustrations</property>
<property name="title" translatable="yes">Illustrations</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="text_column">
<object class="HdyColumn" id="image_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1106,7 +1105,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="text_list">
<object class="GtkListBox" id="image_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1192,13 +1191,13 @@
</child>
</object>
<packing>
<property name="name">Text</property>
<property name="title" translatable="yes">Text</property>
<property name="name">Images</property>
<property name="title" translatable="yes">Images</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="video_column">
<object class="HdyColumn" id="audio_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1232,7 +1231,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="video_list">
<object class="GtkListBox" id="audio_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1318,13 +1317,13 @@
</child>
</object>
<packing>
<property name="name">Videos</property>
<property name="title" translatable="yes">Videos</property>
<property name="name">Music</property>
<property name="title" translatable="yes">Music</property>
<property name="position">5</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="archives_column">
<object class="HdyColumn" id="application_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1358,11 +1357,12 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="archives_list">
<object class="GtkListBox" id="application_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="selection_mode">none</property>
<signal name="row-activated" handler="activated" swapped="no"/>
</object>
</child>
<child type="label_item">
......@@ -1444,13 +1444,13 @@
</child>
</object>
<packing>
<property name="name">Archives</property>
<property name="title" translatable="yes">Archives</property>
<property name="name">Other</property>
<property name="title" translatable="yes">Other</property>
<property name="position">6</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="illustrations_column">
<object class="HdyColumn" id="presentations_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1484,7 +1484,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="illustrations_list">
<object class="GtkListBox" id="presentations_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1570,13 +1570,13 @@
</child>
</object>
<packing>
<property name="name">Illustrations</property>
<property name="title" translatable="yes">Illustrations</property>
<property name="name">Presentations</property>
<property name="title" translatable="yes">Presentations</property>
<property name="position">7</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="presentations_column">
<object class="HdyColumn" id="spreadsheets_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1610,7 +1610,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="presentations_list">
<object class="GtkListBox" id="spreadsheets_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1696,13 +1696,13 @@
</child>
</object>
<packing>
<property name="name">Presentations</property>
<property name="title" translatable="yes">Presentations</property>
<property name="name">Spreadsheets</property>
<property name="title" translatable="yes">Spreadsheets</property>
<property name="position">8</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="spreadsheets_column">
<object class="HdyColumn" id="text_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1736,7 +1736,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="spreadsheets_list">
<object class="GtkListBox" id="text_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1822,13 +1822,13 @@
</child>
</object>
<packing>
<property name="name">Spreadsheets</property>
<property name="title" translatable="yes">Spreadsheets</property>
<property name="name">Text</property>
<property name="title" translatable="yes">Text</property>
<property name="position">9</property>
</packing>
</child>
<child>
<object class="HdyColumn" id="ebooks_column">
<object class="HdyColumn" id="video_column">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="maximum_width">700</property>
......@@ -1862,7 +1862,7 @@
<property name="label_yalign">0</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkListBox" id="ebooks_list">
<object class="GtkListBox" id="video_list">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
......@@ -1948,8 +1948,8 @@
</child>
</object>
<packing>
<property name="name">Ebooks</property>
<property name="title" translatable="yes">Ebooks</property>
<property name="name">Videos</property>
<property name="title" translatable="yes">Videos</property>
<property name="position">10</property>
</packing>
</child>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment