summaryrefslogtreecommitdiffstats
path: root/src/gs-update-dialog.ui
blob: 9dc9f21d6a7b883937106182f7fa52f72fd9296e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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>