Allow search entry of new printer dialog to expand so that it fills the available area. It does not fill it now so there is more free space on the right than on the left. Issue #1587
370 lines
17 KiB
XML
370 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.14"/>
|
|
<object class="GtkListStore" id="devices_liststore">
|
|
<columns>
|
|
<!-- column-name device_gicon -->
|
|
<column type="GIcon"/>
|
|
<!-- column-name device_name -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name device_display_name -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name device_description -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name server_needs_authentication -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name device_visible -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name device -->
|
|
<column type="PpPrintDevice"/>
|
|
</columns>
|
|
</object>
|
|
<object class="GtkTreeModelFilter" id="devices_model_filter">
|
|
<property name="child_model">devices_liststore</property>
|
|
</object>
|
|
<template class="PpNewPrinterDialog" parent="GtkDialog">
|
|
<property name="width_request">480</property>
|
|
<property name="height_request">490</property>
|
|
<property name="title" translatable="yes" comments="Translators: This is the title presented at top of the dialog.">Add Printer</property>
|
|
<property name="resizable">False</property>
|
|
<property name="modal">True</property>
|
|
<property name="destroy_with_parent">True</property>
|
|
<property name="use_header_bar">1</property>
|
|
<child internal-child="headerbar">
|
|
<object class="GtkHeaderBar" id="headerbar">
|
|
<property name="show-title-buttons">False</property>
|
|
<property name="title-widget">
|
|
<object class="AdwWindowTitle" id="header_title">
|
|
<property name="title" translatable="yes" comments="Translators: This is the title presented at top of the dialog.">Add Printer</property>
|
|
</object>
|
|
</property>
|
|
<child>
|
|
<object class="GtkStack" id="headerbar_topleft_buttons">
|
|
<property name="valign">center</property>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">addprinter-page</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="new_printer_cancel_button">
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
<property name="use_underline">True</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">authentication-page</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="go_back_button">
|
|
<property name="halign">start</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkStack" id="headerbar_topright_buttons">
|
|
<property name="valign">center</property>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">addprinter-page</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="new_printer_add_button">
|
|
<property name="label" translatable="yes">_Add</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="use_underline">True</property>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">unlock_button</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="unlock_button">
|
|
<property name="label" translatable="yes" comments="Translators: This button opens authentication dialog for selected server.">_Unlock</property>
|
|
<property name="use_underline">True</property>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">authentication-page</property>
|
|
<property name="child">
|
|
<object class="GtkButton" id="authenticate_button">
|
|
<property name="label" translatable="yes" comments="Translators: This buttons submits the credentials for the selected server.">_Unlock</property>
|
|
<property name="use_underline">True</property>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="dialog-vbox1">
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkStack" id="dialog_stack">
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">addprinter-page</property>
|
|
<property name="child">
|
|
<object class="GtkBox" id="box2">
|
|
<property name="orientation">vertical</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="transition-type">none</property>
|
|
<style>
|
|
<class name="view"/>
|
|
</style>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">standard-page</property>
|
|
<property name="child">
|
|
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
|
<child>
|
|
<object class="GtkTreeView" id="devices_treeview">
|
|
<property name="model">devices_model_filter</property>
|
|
<property name="headers_visible">False</property>
|
|
<property name="enable-grid-lines">GTK_TREE_VIEW_GRID_LINES_HORIZONTAL</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="treeview-selection"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">no-printers-page</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
|
|
<property name="valign">GTK_ALIGN_CENTER</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="valign">GTK_ALIGN_START</property>
|
|
<property name="pixel_size">80</property>
|
|
<property name="icon_name">printer-symbolic</property>
|
|
<property name="opacity">0.6</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="no-devices-label">
|
|
<property name="sensitive">False</property>
|
|
<property name="label" translatable="yes" comments="Translators: No printers were detected">No Printers Found</property>
|
|
<property name="opacity">0.6</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">loading-page</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<style>
|
|
<class name="view"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkSpinner" id="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>
|
|
<property name="sensitive">False</property>
|
|
<property name="opacity">0.6</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparator" />
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="box1">
|
|
<property name="margin-top">4</property>
|
|
<property name="margin-bottom">4</property>
|
|
<property name="margin-start">4</property>
|
|
<property name="margin-end">4</property>
|
|
<child>
|
|
<object class="GtkSearchEntry" id="search_entry">
|
|
<property name="has_tooltip">True</property>
|
|
<property name="placeholder_text" translatable="yes" comments="Translators: The entered text should contain network address of a printer or a text which will filter found devices (their names and locations)">Enter a network address or search for a printer</property>
|
|
<property name="margin_start">40</property>
|
|
<property name="margin_end">40</property>
|
|
<property name="hexpand">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">authentication-page</property>
|
|
<property name="child">
|
|
<object class="GtkGrid">
|
|
<property name="margin-top">20</property>
|
|
<property name="margin-bottom">20</property>
|
|
<property name="margin-start">20</property>
|
|
<property name="margin-end">20</property>
|
|
<property name="row_spacing">10</property>
|
|
<property name="column_spacing">15</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<style>
|
|
<class name="background"/>
|
|
</style>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="pixel_size">48</property>
|
|
<property name="icon_name">dialog-password-symbolic</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
<property name="row-span">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="authentication_title">
|
|
<property name="label" translatable="yes">Authentication Required</property>
|
|
<property name="xalign">0</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="authentication_text">
|
|
<property name="wrap">True</property>
|
|
<property name="max_width_chars">36</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">Enter username and password to view printers on Print Server.</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Username</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="username_entry">
|
|
<property name="invisible_char">●</property>
|
|
<property name="activates_default">True</property>
|
|
<property name="hexpand">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Password</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="password_entry">
|
|
<property name="visibility">False</property>
|
|
<property name="invisible_char">●</property>
|
|
<property name="activates_default">True</property>
|
|
<property name="hexpand">True</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<action-widgets>
|
|
<action-widget response="-6">new_printer_cancel_button</action-widget>
|
|
<action-widget response="-5">new_printer_add_button</action-widget>
|
|
</action-widgets>
|
|
</template>
|
|
<object class="GtkSizeGroup">
|
|
<widgets>
|
|
<widget name="new_printer_cancel_button"/>
|
|
<widget name="headerbar_topright_buttons"/>
|
|
</widgets>
|
|
</object>
|
|
</interface>
|