Add a label immediately below the printer name entry in printer details that warns the user if the printer name contains invalid characters (or other errors) per the CUPS spec.
235 lines
9.5 KiB
XML
235 lines
9.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.18.3 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.12"/>
|
|
<template class="PpDetailsDialog" parent="GtkDialog">
|
|
<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">
|
|
<property name="show_title_buttons">True</property>
|
|
<child type="title">
|
|
<object class="GtkLabel" id="dialog_title">
|
|
<property name="wrap">True</property>
|
|
<property name="max_width_chars">30</property>
|
|
<property name="ellipsize">middle</property>
|
|
<property name="hexpand">true</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<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="halign">center</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="row-spacing">10</property>
|
|
<property name="column-spacing">10</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Name</property>
|
|
<property name="halign">end</property>
|
|
<property name="mnemonic_widget">printer_name_entry</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="printer_name_entry">
|
|
<property name="halign">fill</property>
|
|
<property name="width_request">320</property>
|
|
<signal name="changed" handler="printer_name_changed" object="PpDetailsDialog" swapped="yes"/>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRevealer" id="print_name_hint_revealer">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkLabel" id="print_name_hint_label">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">Printer names cannot contain SPACE, TAB, #, or /</property>
|
|
<property name="yalign">0</property>
|
|
<property name="xalign">0</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
<attributes>
|
|
<attribute name="scale" value="0.83"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Location</property>
|
|
<property name="halign">end</property>
|
|
<property name="mnemonic_widget">printer_location_entry</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="printer_location_entry">
|
|
<property name="width_request">320</property>
|
|
<property name="halign">fill</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Address</property>
|
|
<property name="halign">end</property>
|
|
<property name="mnemonic_widget">printer_address_label</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="printer_address_label">
|
|
<property name="label">192.168.0.1</property>
|
|
<property name="halign">start</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">3</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Driver</property>
|
|
<property name="halign">end</property>
|
|
<property name="mnemonic_widget">printer_model_label</property>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">4</property>
|
|
</layout>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStack" id="printer_model_stack">
|
|
<property name="halign">start</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">4</property>
|
|
</layout>
|
|
<child>
|
|
<object class="GtkLabel" id="printer_model_label">
|
|
<property name="halign">start</property>
|
|
<property name="label">HP Inkjet Delux 9000</property>
|
|
<property name="selectable">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="loading_box">
|
|
<property name="halign">start</property>
|
|
<property name="spacing">5</property>
|
|
<child>
|
|
<object class="GtkSpinner">
|
|
<property name="spinning">True</property>
|
|
<property name="halign">start</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes">Searching for preferred drivers…</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkBox" id="driver_buttons">
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">10</property>
|
|
<property name="halign">start</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">5</property>
|
|
</layout>
|
|
<child>
|
|
<object class="GtkButton" id="search_for_drivers_button">
|
|
<property name="label" translatable="yes">Search for Drivers</property>
|
|
<property name="halign">fill</property>
|
|
<signal name="clicked" handler="search_for_drivers" object="PpDetailsDialog" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkButton" id="select_from_database_button">
|
|
<property name="label" translatable="yes">Select from Database…</property>
|
|
<property name="halign">fill</property>
|
|
<signal name="clicked" handler="select_ppd_in_dialog" object="PpDetailsDialog" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkButton" id="install_ppd_button">
|
|
<property name="label" translatable="yes">Install PPD File…</property>
|
|
<property name="halign">fill</property>
|
|
<signal name="clicked" handler="select_ppd_manually" object="PpDetailsDialog" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
|
|
<object class="GtkSizeGroup">
|
|
<property name="mode">horizontal</property>
|
|
<widgets>
|
|
<widget name="search_for_drivers_button"/>
|
|
<widget name="select_from_database_button"/>
|
|
<widget name="install_ppd_button"/>
|
|
</widgets>
|
|
</object>
|
|
</interface>
|