summaryrefslogtreecommitdiffstats
path: root/src/gs-updates-section.ui
blob: 3a1eac32ef5938b71bcf44ff54d5e984bf91689c (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
109
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.0"/>
  <template class="GsUpdatesSection" parent="GtkBox">
    <property name="orientation">vertical</property>
    <style>
      <class name="section"/>
    </style>
    <child>
      <object class="GtkBox" id="section_header">
        <property name="spacing">12</property>
        <child>
          <object class="GtkLabel" id="title">
            <property name="can_focus">False</property>
            <property name="ellipsize">end</property>
            <property name="halign">start</property>
            <property name="hexpand">True</property>
            <property name="xalign">0</property>
            <style>
              <class name="heading"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="button_stack">

            <child>
              <object class="GtkStackPage">
                <property name="name">download</property>
                <property name="child">
                  <object class="GsProgressButton" id="button_download">
                    <property name="use_underline">True</property>
                    <property name="label" translatable="yes">_Download</property>
                    <signal name="clicked" handler="_button_download_clicked_cb" swapped="yes"/>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>

            <child>
              <object class="GtkStackPage">
                <property name="name">update</property>
                <property name="child">
                  <object class="GsProgressButton" id="button_update">
                    <signal name="clicked" handler="_button_update_all_clicked_cb" swapped="yes"/>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>

            <child>
              <object class="GtkStackPage">
                <property name="name">cancel</property>
                <property name="child">
                  <object class="GsProgressButton" id="button_cancel">
                    <property name="label" translatable="yes">Cancel</property>
                    <signal name="clicked" handler="_button_cancel_clicked_cb" swapped="yes"/>
                    <style>
                      <class name="install-progress"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>

          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkLabel" id="description">
        <property name="visible">False</property>
        <property name="can_focus">False</property>
        <property name="halign">start</property>
        <property name="wrap">True</property>
        <property name="wrap-mode">word-char</property>
        <property name="xalign">0</property>
        <style>
          <class name="dim-label"/>
        </style>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="listbox_box">
        <property name="orientation">vertical</property>
        <accessibility>
          <relation name="labelled-by">title</relation>
        </accessibility>
        <child>
          <object class="GtkListBox" id="listbox">
            <property name="selection_mode">none</property>
            <property name="valign">start</property>
            <signal name="row-activated" handler="_app_row_activated_cb" swapped="yes"/>
            <signal name="keynav-failed" handler="_listbox_keynav_failed_cb" swapped="yes"/>
            <style>
              <class name="boxed-list"/>
            </style>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>