2010-12-17 13:58:45 +01:00
<?xml version="1.0"?>
<interface>
2015-04-30 14:15:25 +02:00
<requires lib="gtk+" version="3.12"/>
2020-03-02 13:59:04 +01:00
<object class="GtkBox" id="top-right-buttons">
<property name="spacing">6</property>
<child>
<object class="GtkButton" id="printer-add-button">
2021-06-08 21:04:22 -04:00
<property name="sensitive">False</property>
2020-03-02 13:59:04 +01:00
<property name="use_underline">True</property>
2021-06-08 21:04:22 -04:00
<property name="label" translatable="yes" comments="Translators: This button adds new printer.">Add Printer…</property>
2020-03-02 13:59:04 +01:00
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
2017-03-06 15:58:52 +01:00
<child>
2020-03-02 13:59:04 +01:00
<object class="GtkToggleButton" id="search-button">
<property name="margin-end">6</property> <!-- since we don't have access to the shell header bar -->
<style>
<class name="image-button"/>
</style>
<child>
<object class="GtkImage">
<property name="icon_name">system-search-symbolic</property>
</object>
</child>
2017-03-06 15:58:52 +01:00
</object>
</child>
</object>
2017-02-21 18:03:27 +01:00
<object class="GtkOverlay" id="overlay">
<child type="overlay">
<object class="GtkRevealer" id="notification">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_START</property>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<style>
<class name="app-notification"/>
</style>
<child>
<object class="GtkLabel" id="notification-label">
<property name="wrap">True</property>
<property name="max_width_chars">50</property>
</object>
</child>
<child>
<object class="GtkButton" id="notification-undo-button">
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="label" translatable="yes" comments="Translators: This is the button which allows undoing the removal of the printer.">Undo</property>
</object>
</child>
<child>
<object class="GtkButton" id="notification-dismiss-button">
<property name="valign">GTK_ALIGN_CENTER</property>
<style>
<class name="flat"/>
</style>
<child>
<object class="GtkImage">
<property name="icon_name">window-close-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
2020-02-24 11:00:11 +01:00
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
<child>
<object class="CcPermissionInfobar" id="permission-infobar">
</object>
</child>
<child>
2016-06-08 16:20:47 +02:00
<object class="GtkStack" id="main-vbox">
2021-10-29 17:16:45 -03:00
<property name="hexpand">True</property>
<property name="vexpand">True</property>
2016-06-10 14:44:28 +02:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkStackPage">
<property name="name">loading-page</property>
<property name="child">
<object class="GtkBox">
<child>
<object class="GtkSpinner" id="loading-spinner">
<property name="spinning">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
</child>
2016-06-10 14:44:28 +02:00
</object>
2021-10-29 17:16:45 -03:00
</property>
2016-06-10 14:44:28 +02:00
</object>
</child>
2021-10-29 17:16:45 -03:00
2010-12-17 13:58:45 +01:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkStackPage">
<property name="name">printers-list</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
2017-03-06 15:58:52 +01:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkSearchBar" id="search-bar">
<property name="hexpand">True</property>
<property name="search_mode_enabled" bind-source="search-button" bind-property="active" bind-flags="bidirectional" />
<child>
<object class="GtkSearchEntry" id="search-entry">
<property name="width_chars">30</property>
</object>
</child>
2017-03-06 15:58:52 +01:00
</object>
</child>
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkScrolledWindow" id="scrolled-window">
<property name="hscrollbar-policy">never</property>
<property name="min-content-height">490</property>
<property name="vexpand">True</property>
2017-08-24 12:41:35 +02:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkBox">
<child>
<object class="GtkListBox" id="content">
<property name="selection-mode">GTK_SELECTION_NONE</property>
<property name="margin-top">32</property>
<property name="margin-bottom">32</property>
<style>
<class name="background"/>
</style>
</object>
</child>
2017-08-24 12:41:35 +02:00
</object>
</child>
2017-03-06 15:58:52 +01:00
</object>
</child>
2016-06-08 16:20:47 +02:00
</object>
2021-10-29 17:16:45 -03:00
</property>
2016-06-08 16:20:47 +02:00
</object>
</child>
2021-10-29 17:16:45 -03:00
2016-06-08 16:20:47 +02:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkStackPage">
<property name="name">empty-state</property>
<property name="child">
<object class="GtkBox">
<property name="spacing">10</property>
<property name="orientation">vertical</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="valign">start</property>
<property name="pixel_size">80</property>
<property name="icon_name">printer-symbolic</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="margin_bottom">15</property>
<property name="label" translatable="yes">No printers</property>
<style>
<class name="dim-label"/>
</style>
<attributes>
<attribute name="scale" value="1.2"/>
</attributes>
</object>
</child>
<child>
<object class="GtkButton" id="printer-add-button2">
<property name="label" translatable="yes" comments="Translators: This button adds new printer.">Add a Printer…</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
2016-06-08 16:20:47 +02:00
</object>
2021-10-29 17:16:45 -03:00
</property>
2016-06-08 16:20:47 +02:00
</object>
</child>
2021-10-29 17:16:45 -03:00
2016-06-08 16:20:47 +02:00
<child>
2021-10-29 17:16:45 -03:00
<object class="GtkStackPage">
<property name="name">no-cups-page</property>
<property name="child">
<object class="GtkBox">
<property name="spacing">10</property>
<property name="orientation">vertical</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label" translatable="yes" comments="Translators: The CUPS server is not running (we can not connect to it).">Sorry! The system printing service
doesn’ t seem to be available.</property>
<style>
<class name="dim-label"/>
</style>
<attributes>
<attribute name="scale" value="1.2"/>
</attributes>
</object>
</child>
<child>
<object class="GtkImage">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="valign">start</property>
<property name="pixel_size">80</property>
<property name="icon_name">computer-fail-symbolic</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
2010-12-17 13:58:45 +01:00
</object>
2021-10-29 17:16:45 -03:00
</property>
2010-12-17 13:58:45 +01:00
</object>
</child>
2021-10-29 17:16:45 -03:00
2010-12-17 13:58:45 +01:00
</object>
2020-02-24 11:00:11 +01:00
</child>
</object>
2017-02-21 18:03:27 +01:00
</child>
</object>
2011-03-19 23:16:52 -04:00
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
<widget name="back-button-1"/>
<widget name="back-spacer-label-1"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="sizegroup2">
<widgets>
<widget name="back-button-2"/>
<widget name="back-spacer-label-2"/>
</widgets>
</object>
2010-12-17 13:58:45 +01:00
</interface>