summaryrefslogtreecommitdiffstats
path: root/src/gs-moderate-page.ui
blob: 0f8bd2214de120bdec49e5782313371cb5578ac1 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="GsModeratePage" parent="GsPage">
    <accessibility>
      <property name="label" translatable="yes">Moderate page</property>
    </accessibility>
    <child>
      <object class="GtkStack" id="stack_install">

        <child>
          <object class="GtkStackPage">
            <property name="name">spinner</property>
            <property name="child">
              <object class="GtkSpinner" id="spinner_install">
                <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>
            </property>
          </object>
        </child>

        <child>
          <object class="GtkStackPage">
            <property name="name">view</property>
            <property name="child">
              <object class="GtkBox" id="box_install">
                <property name="orientation">vertical</property>
                <child>
                  <object class="GtkScrolledWindow" id="scrolledwindow_install">
                    <property name="can_focus">True</property>
                    <property name="hscrollbar_policy">never</property>
                    <property name="vscrollbar_policy">automatic</property>
                    <property name="vexpand">True</property>
                    <child>
                      <object class="AdwClamp">
                        <property name="maximum-size">860</property>
                        <!-- ~⅔ of the maximum size. -->
                        <property name="tightening-threshold">576</property>
                        <child>
                          <object class="GtkListBox" id="list_box_install">
                            <property name="can_focus">True</property>
                            <property name="selection_mode">none</property>
                            <property name="valign">start</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <child>
          <object class="GtkStackPage">
            <property name="name">uptodate</property>
            <property name="child">
              <object class="AdwStatusPage" id="updates_uptodate_box">
                <property name="hexpand">True</property>
                <property name="vexpand">True</property>
                <property name="icon_name">object-select-symbolic</property>
                <property name="title" translatable="yes">There are no reviews to moderate</property>
              </object>
            </property>
          </object>
        </child>

      </object>
    </child>
  </template>
</interface>