gs-update-dialog.ui 14.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="GsUpdateDialog" parent="GtkDialog">
    <property name="modal">True</property>
    <property name="default_width">600</property>
    <property name="default_height">600</property>
    <property name="destroy_with_parent">True</property>
    <property name="type_hint">dialog</property>
    <property name="use_header_bar">1</property>
    <child internal-child="headerbar">
      <object class="GtkHeaderBar">
13
        <property name="show_close_button" bind-source="button_back" bind-property="visible" bind-flags="sync-create|invert-boolean"/>
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
        <child>
          <object class="GtkButton" id="button_back">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="receives_default">True</property>
            <child internal-child="accessible">
              <object class="AtkObject" id="button_back_accessible">
                <property name="accessible-name" translatable="yes">Go back</property>
              </object>
            </child>
            <style>
              <class name="image-button"/>
            </style>
            <child>
              <object class="GtkImage" id="image_update_back">
                <property name="visible">True</property>
                <property name="icon_name">go-previous-symbolic</property>
                <property name="icon_size">1</property>
              </object>
            </child>
          </object>
          <packing>
            <property name="pack-type">start</property>
          </packing>
        </child>
      </object>
    </child>
    <child internal-child="vbox">
      <object class="GtkBox" id="dialog-vbox1">
43
        <property name="border_width">0</property>
44 45 46
        <property name="orientation">vertical</property>
        <property name="spacing">2</property>
        <child>
47
          <object class="GtkStack" id="stack">
48
            <property name="visible">True</property>
49
            <property name="transition_duration">300</property>
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
            <child>
              <object class="GtkBox" id="box_spinner">
                <property name="visible">True</property>
                <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="visible">True</property>
                    <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>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">spinner</property>
              </packing>
            </child>
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
            <child>
              <object class="GtkBox" id="box_empty">
                <property name="visible">True</property>
                <property name="halign">center</property>
                <property name="valign">center</property>
                <property name="hexpand">True</property>
                <property name="vexpand">True</property>
                <property name="spacing">16</property>
                <property name="orientation">vertical</property>
                <style>
                  <class name="dim-label"/>
                </style>
                <child>
                  <object class="GtkImage" id="icon_empty">
                    <property name="visible">True</property>
93
                    <property name="icon_name">org.gnome.Software-symbolic</property>
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
                    <property name="pixel-size">64</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="label_empty">
                    <property name="visible">True</property>
                    <property name="justify">center</property>
                    <property name="label" translatable="yes">No updates have been installed on this system.</property>
                    <property name="wrap">True</property>
                    <property name="max_width_chars">40</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">empty</property>
              </packing>
            </child>
113
            <child>
114
              <object class="GtkBox" id="box7">
115
                <property name="visible">True</property>
116 117 118 119 120
                <property name="margin_start">6</property>
                <property name="margin_end">6</property>
                <property name="margin_top">6</property>
                <property name="margin_bottom">9</property>
                <property name="border_width">5</property>
121
                <property name="orientation">vertical</property>
122 123
                <property name="spacing">9</property>
                <child>
124
                  <object class="GtkBox" id="box_header">
125
                    <property name="visible">True</property>
126
                    <property name="spacing">9</property>
127
                    <child>
128
                      <object class="GtkImage" id="image_icon">
129
                        <property name="visible">True</property>
130
                        <property name="pixel_size">96</property>
131
                        <property name="icon_name">application-x-executable</property>
132
                        <property name="icon_size">0</property>
133 134 135
                      </object>
                    </child>
                    <child>
136
                      <object class="GtkBox" id="box9">
137
                        <property name="visible">True</property>
138 139 140 141 142 143 144
                        <property name="orientation">vertical</property>
                        <property name="spacing">3</property>
                        <child>
                          <object class="GtkLabel" id="label_name">
                            <property name="visible">True</property>
                            <property name="xalign">0</property>
                            <property name="label">Inkscape</property>
145
                            <property name="selectable">True</property>
146 147 148
                            <property name="wrap">True</property>
                            <property name="max_width_chars">50</property>
                            <property name="width_chars">50</property>
149 150 151 152 153 154 155 156 157 158 159 160
                            <attributes>
                              <attribute name="weight" value="bold"/>
                              <attribute name="scale" value="1.3999999999999999"/>
                            </attributes>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="label_summary">
                            <property name="visible">True</property>
                            <property name="xalign">0</property>
                            <property name="label">Vector based drawing program</property>
                            <property name="selectable">True</property>
161 162 163
                            <property name="wrap">True</property>
                            <property name="max_width_chars">50</property>
                            <property name="width_chars">50</property>
164 165
                          </object>
                        </child>
166 167 168 169
                      </object>
                    </child>
                  </object>
                </child>
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
                <child>
                  <object class="GtkBox" id="permissions_section_box">
                    <property name="visible">True</property>
                    <property name="orientation">vertical</property>
                    <property name="spacing">6</property>
                    <property name="margin_top">12</property>
                    <property name="margin_bottom">18</property>
                    <child>
                      <object class="GtkLabel" id="permissions_section_title">
                        <property name="visible">True</property>
                        <property name="xalign">0</property>
                        <property name="halign">start</property>
                        <property name="margin_bottom">6</property>
                        <property name="label" translatable="yes">Requires additional permissions</property>
                        <attributes>
                          <attribute name="weight" value="bold"/>
                        </attributes>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox" id="permissions_section_content">
                        <property name="visible">True</property>
                        <property name="orientation">vertical</property>
                        <property name="spacing">12</property>
                        <property name="margin-start">18</property>
                        <property name="margin-end">18</property>
                      </object>
                    </child>
                  </object>
                </child>
200
                <child>
201
                  <object class="GtkScrolledWindow" id="scrolledwindow_details">
202
                    <property name="visible">True</property>
203 204 205 206 207 208
                    <property name="can_focus">True</property>
                    <property name="vexpand">True</property>
                    <property name="hscrollbar_policy">never</property>
                    <property name="vscrollbar_policy">automatic</property>
                    <property name="shadow_type">none</property>
                    <child>
209
                      <object class="GtkLabel" id="label_details">
210
                        <property name="visible">True</property>
211 212 213 214
                        <property name="xalign">0</property>
                        <property name="yalign">0</property>
                        <property name="margin">6</property>
                        <property name="label">New in kmod 14-1
215 216
* Moo
* bar</property>
217 218
                        <property name="wrap">True</property>
                        <property name="selectable">True</property>
219 220
                      </object>
                    </child>
221 222 223 224
                  </object>
                </child>
              </object>
              <packing>
225
                <property name="name">package-details</property>
226 227 228 229 230 231 232 233 234 235 236
              </packing>
            </child>
            <child>
              <object class="GtkScrolledWindow" id="scrolledwindow">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="vexpand">True</property>
                <property name="hscrollbar_policy">never</property>
                <property name="vscrollbar_policy">automatic</property>
                <property name="shadow_type">none</property>
                <child>
237
                  <object class="GtkBox">
238
                    <property name="visible">True</property>
239
                    <property name="orientation">vertical</property>
240
                    <property name="margin_top">24</property>
241
                    <property name="margin_bottom">18</property>
242 243
                    <property name="margin_start">18</property>
                    <property name="margin_end">18</property>
244 245 246 247 248 249 250 251 252 253 254
                    <child>
                      <object class="GtkLabel" id="os_update_description">
                        <property name="visible">True</property>
                        <property name="xalign">0</property>
                        <property name="wrap">True</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox" id="os_update_box">
                        <property name="visible">True</property>
                        <property name="orientation">vertical</property>
255
                        <property name="vexpand">False</property>
256 257
                      </object>
                    </child>
258 259 260 261
                  </object>
                </child>
              </object>
              <packing>
262
                <property name="name">os-update-list</property>
263 264
              </packing>
            </child>
265 266 267 268 269 270 271 272 273 274 275
            <child>
              <object class="GtkScrolledWindow" id="scrolledwindow_installed_updates">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="vexpand">True</property>
                <property name="hscrollbar_policy">never</property>
                <property name="vscrollbar_policy">automatic</property>
                <property name="shadow_type">none</property>
                <child>
                  <object class="GtkFrame" id="frame_installed_updates">
                    <property name="visible">True</property>
276
                    <property name="shadow_type">none</property>
277 278 279 280 281 282
                    <property name="halign">fill</property>
                    <property name="valign">start</property>
                    <style>
                      <class name="view"/>
                    </style>
                    <child>
283
                      <object class="GsUpdateList" id="list_box_installed_updates">
284 285 286 287 288 289 290 291 292 293 294 295
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="selection_mode">none</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">installed-updates-list</property>
              </packing>
            </child>
296 297 298 299 300 301 302 303 304 305 306 307 308 309
          </object>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkSizeGroup" id="sizegroup_update_details">
    <property name="ignore-hidden">False</property>
    <property name="mode">horizontal</property>
    <widgets>
      <widget name="scrolledwindow"/>
      <widget name="scrolledwindow_details"/>
    </widgets>
  </object>
</interface>