<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="GsUpdatesPage" parent="GsPage">
    <child internal-child="accessible">
      <object class="AtkObject" id="updates-accessible">
        <property name="accessible-name" translatable="yes">Updates page</property>
      </object>
    </child>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkBox" id="box_end_of_life">
            <property name="visible">False</property>
            <property name="border_width">0</property>
            <property name="orientation">horizontal</property>
            <property name="spacing">18</property>
            <style>
              <class name="eol-box"/>
            </style>
            <child>
              <object class="GtkImage">
                <property name="visible">True</property>
                <property name="pixel_size">16</property>
                <property name="icon_name">dialog-warning-symbolic</property>
                <property name="margin_top">18</property>
                <property name="margin_left">18</property>
                <property name="valign">start</property>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="spacing">6</property>
                <property name="visible">True</property>
                <child>
                  <object class="GtkLabel">
                    <property name="visible">True</property>
                    <property name="margin_right">18</property>
                    <property name="margin_top">18</property>
                    <property name="label" translatable="yes">Operating System Updates Unavailable</property>
                    <property name="xalign">0</property>
                    <attributes>
                      <attribute name="weight" value="bold"/>
                    </attributes>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="label_end_of_life">
                    <property name="visible">True</property>
                    <property name="margin_right">18</property>
                    <property name="margin_bottom">18</property>
                    <property name="label">Your OS is no longer supported. This means that it does not receive security updates. It is recommended that you upgrade to a more recent version.</property>
                    <property name="wrap">True</property>
                    <property name="width_chars">80</property>
                    <property name="xalign">0</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="stack_updates">
            <property name="visible">True</property>
            <child>
              <object class="HdyClamp">
                <property name="visible">True</property>
                <property name="valign">center</property>
                <!-- We explicitly want to use the default HdyClamp sizes here,
                     as does HdyStatusPage. -->
                <style>
                  <class name="status-page"/>
                </style>
                <child>
                  <object class="GtkBox">
                    <property name="visible">True</property>
                    <property name="orientation">vertical</property>
                    <property name="valign">center</property>
                    <child>
                      <object class="GtkSpinner" id="spinner_updates">
                        <property name="visible">True</property>
                        <style>
                          <class name="icon"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel" id="label_updates_spinner">
                        <property name="visible">True</property>
                        <property name="wrap">True</property>
                        <property name="wrap-mode">word-char</property>
                        <property name="justify">center</property>
                        <property name="label" translatable="yes" comments="TRANSLATORS: the updates panel is starting up.">Loading Updates…</property>
                        <style>
                          <class name="title"/>
                          <class name="large-title"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel">
                        <property name="visible">True</property>
                        <property name="wrap">True</property>
                        <property name="wrap-mode">word-char</property>
                        <property name="justify">center</property>
                        <property name="use-markup">True</property>
                        <property name="label" translatable="yes" comments="TRANSLATORS: the updates panel is starting up.">This could take a while.</property>
                        <style>
                          <class name="body"/>
                          <class name="description"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">spinner</property>
              </packing>
            </child>
            <child>
              <object class="GtkScrolledWindow" id="scrolledwindow_updates">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
                <property name="hscrollbar_policy">never</property>
                <property name="vscrollbar_policy">automatic</property>
                <property name="shadow_type">none</property>
                <style>
                  <class name="list-page"/>
                </style>
                <child>
                  <object class="HdyClamp">
                    <property name="visible">True</property>
                    <property name="maximum-size">600</property>
                    <property name="tightening-threshold">400</property>
                    <child>
                      <object class="GtkBox" id="list_box_updates_box">
                        <property name="visible">True</property>
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GsUpgradeBanner" id="upgrade_banner">
                            <property name="visible">False</property>
                            <property name="hexpand">True</property>
                            <property name="vexpand">False</property>
                            <property name="margin-top">12</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkBox" id="updates_box">
                            <property name="visible">True</property>
                            <property name="orientation">vertical</property>
                            <property name="spacing">24</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">view</property>
              </packing>
            </child>
            <child>
              <object class="GtkBox">
                <property name="visible">True</property>
                <property name="orientation">vertical</property>
                <property name="spacing">48</property>
                <property name="hexpand">True</property>
                <property name="vexpand">True</property>
                <child>
                  <object class="GsUpgradeBanner" id="upgrade_banner_uptodate">
                    <property name="visible">False</property>
                    <property name="hexpand">True</property>
                    <property name="vexpand">True</property>
                  </object>
                </child>
                <child>

                  <!-- FIXME: This should be a HdyStatusPage but it doesn’t
                       currently support non-icon images
                       See https://gitlab.gnome.org/GNOME/libhandy/-/issues/448 -->
                  <object class="GtkScrolledWindow">
                    <property name="visible">True</property>
                    <property name="hscrollbar-policy">never</property>
                    <property name="propagate-natural-height">True</property>
                    <style>
                      <class name="fake-hdy-status-page"/>
                    </style>
                    <child>
                      <object class="GtkBox">
                        <property name="visible">True</property>
                        <property name="orientation">vertical</property>
                        <property name="valign">center</property>
                        <child>
                          <object class="HdyClamp">
                            <property name="visible">True</property>
                            <child>
                              <object class="GtkBox">
                                <property name="visible">True</property>
                                <property name="orientation">vertical</property>
                                <property name="valign">center</property>
                                <child>
                                  <object class="GtkImage">
                                    <property name="visible">True</property>
                                    <!--><property name="pixel-size">400</property>-->
                                    <property name="resource">/org/gnome/Software/up-to-date.svg</property>
                                    <style>
                                      <class name="icon"/>
                                    </style>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="visible">True</property>
                                    <property name="wrap">True</property>
                                    <property name="wrap-mode">word-char</property>
                                    <property name="justify">center</property>
                                    <property name="label" translatable="yes" comments="TRANSLATORS: This means all software (plural) installed on this system is up to date.">Up to Date</property>
                                    <style>
                                      <class name="title"/>
                                      <class name="large-title"/>
                                    </style>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel" id="uptodate_description">
                                    <property name="visible">True</property>
                                    <property name="wrap">True</property>
                                    <property name="wrap-mode">word-char</property>
                                    <property name="justify">center</property>
                                    <property name="use-markup">True</property>
                                    <property name="label">Last checked: HH:MM</property>
                                    <style>
                                      <class name="body"/>
                                      <class name="description"/>
                                    </style>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">True</property>
                  </packing>
                </child>
              </object>
              <packing>
                <property name="name">uptodate</property>
              </packing>
            </child>
            <child>
              <object class="HdyStatusPage">
                <property name="visible">True</property>
                <property name="icon_name">dialog-warning-symbolic</property>
                <property name="title" translatable="yes">Use Mobile Data?</property>
                <property name="description" translatable="yes">Checking for updates when using mobile broadband could cause you to incur charges.</property>
                <child>
                  <object class="GtkButton" id="button_updates_mobile">
                    <property name="label" translatable="yes">_Check Anyway</property>
                    <property name="visible">True</property>
                    <property name="use_underline">True</property>
                    <property name="halign">center</property>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">mobile</property>
              </packing>
            </child>
            <child>
              <object class="HdyStatusPage">
                <property name="visible">True</property>
                <property name="icon_name">network-offline-symbolic</property>
                <property name="title" translatable="yes">No Connection</property>
                <property name="description" translatable="yes">Go online to check for updates.</property>
                <child>
                  <object class="GtkButton" id="button_updates_offline">
                    <property name="label" translatable="yes">_Network Settings</property>
                    <property name="visible">True</property>
                    <property name="use_underline">True</property>
                    <property name="halign">center</property>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">offline</property>
              </packing>
            </child>
            <child>
              <object class="HdyStatusPage" id="updates_failed_page">
                <property name="visible">True</property>
                <property name="icon_name">action-unavailable-symbolic</property>
                <property name="title" translatable="No">Error</property>
                <property name="description" translatable="No">Failed to get updates.</property>
              </object>
              <packing>
                <property name="name">failed</property>
              </packing>
            </child>
            <child>
              <object class="HdyStatusPage">
                <property name="visible">True</property>
                <property name="icon_name">action-unavailable-symbolic</property>
                <property name="title" translatable="yes">Error</property>
                <property name="description" translatable="yes">Updates are automatically managed.</property>
              </object>
              <packing>
                <property name="name">managed</property>
              </packing>
            </child>
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>
