summaryrefslogtreecommitdiffstats
path: root/src/gs-update-dialog.ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-update-dialog.ui')
-rw-r--r--src/gs-update-dialog.ui108
1 files changed, 108 insertions, 0 deletions
diff --git a/src/gs-update-dialog.ui b/src/gs-update-dialog.ui
new file mode 100644
index 0000000..9dc9f21
--- /dev/null
+++ b/src/gs-update-dialog.ui
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="3.10"/>
+ <template class="GsUpdateDialog" parent="AdwWindow">
+ <property name="modal">True</property>
+ <property name="destroy_with_parent">True</property>
+ <property name="icon_name">dialog-information</property>
+ <property name="title"></property>
+ <property name="default-width">640</property>
+ <property name="default-height">576</property>
+
+ <child>
+ <object class="AdwLeaflet" id="leaflet">
+ <property name="can-navigate-back">True</property>
+ <property name="can-unfold">False</property>
+ <!-- We need both signals to support the animations being disabled, as
+ notify::child-transition-running isn't emitted in that case. -->
+ <signal name="notify::visible-child" handler="leaflet_child_transition_cb" swapped="no"/>
+ <signal name="notify::child-transition-running" handler="leaflet_child_transition_cb" swapped="no"/>
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="AdwHeaderBar">
+ <property name="valign">start</property>
+ <property name="show_start_title_buttons">True</property>
+ <property name="show_end_title_buttons">True</property>
+ <property name="title-widget">
+ <object class="AdwWindowTitle" id="window_title">
+ <property name="title" bind-source="GsUpdateDialog" bind-property="title" bind-flags="sync-create"/>
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStack" id="stack">
+ <property name="transition_duration">300</property>
+
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">spinner</property>
+ <property name="child">
+ <object class="GtkBox" id="box_spinner">
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ <child>
+ <object class="GtkSpinner" id="spinner">
+ <property name="width_request">32</property>
+ <property name="height_request">32</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ <style>
+ <class name="fade-in"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">empty</property>
+ <property name="child">
+ <object class="AdwStatusPage">
+ <property name="icon_name">org.gnome.Software-symbolic</property>
+ <property name="title" translatable="yes">No Updates Installed</property>
+ </object>
+ </property>
+ </object>
+ </child>
+
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">installed-updates-list</property>
+ <property name="child">
+ <object class="AdwPreferencesPage">
+ <child>
+ <object class="AdwPreferencesGroup">
+ <child>
+ <object class="GsUpdateList" id="list_box_installed_updates">
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>