[gnome-control-center] printers: Reorganize main tab
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Reorganize main tab
- Date: Tue, 1 Feb 2011 14:06:53 +0000 (UTC)
commit 88562eba2df1debe486f9cff5173231c0502ed1b
Author: Marek Kasik <mkasik redhat com>
Date: Tue Feb 1 15:05:52 2011 +0100
printers: Reorganize main tab
Remove printer's description.
Remove "Clean Print Heads" button.
Move allowed users list to Options tab.
Change printer-disable-button to GtkSwitch.
Show printer's model name.
Show an icon of printer.
panels/printers/cc-printers-panel.c | 101 ++++++---
panels/printers/printers.ui | 431 ++++++++++++++++++++++-------------
2 files changed, 344 insertions(+), 188 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 50fb91a..ea5ad93 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -63,7 +63,7 @@ struct _CcPrintersPanelPrivate
static void actualize_jobs_list (CcPrintersPanel *self);
static void actualize_printers_list (CcPrintersPanel *self);
static void actualize_allowed_users_list (CcPrintersPanel *self);
-static void printer_disable_cb (GtkToggleButton *togglebutton, gpointer user_data);
+static void printer_disable_cb (GObject *gobject, GParamSpec *pspec, gpointer user_data);
static void printer_set_default_cb (GtkToggleButton *button, gpointer user_data);
static void
@@ -172,14 +172,14 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
const gchar *none = "---";
GtkWidget *widget;
gboolean test_page_command_available = FALSE;
- gboolean clean_command_available = FALSE;
+ gchar *printer_make_and_model = NULL;
gchar *reason = NULL;
gchar **available_commands = NULL;
gchar *printer_commands = NULL;
gchar **printer_reasons = NULL;
gchar *marker_levels = NULL;
+ gchar *printer_name = NULL;
gchar *active_jobs = NULL;
- gchar *description = NULL;
gchar *location = NULL;
gchar *status = NULL;
gint width, height;
@@ -246,9 +246,12 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
priv = PRINTERS_PANEL_PRIVATE (self);
if (gtk_tree_selection_get_selected (selection, &model, &iter))
- gtk_tree_model_get (model, &iter,
- PRINTER_ID_COLUMN, &id,
- -1);
+ {
+ gtk_tree_model_get (model, &iter,
+ PRINTER_ID_COLUMN, &id,
+ PRINTER_NAME_COLUMN, &printer_name,
+ -1);
+ }
else
id = -1;
@@ -267,14 +270,14 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
location = g_strdup (priv->dests[id].options[i].value);
else if (g_strcmp0 (priv->dests[id].options[i].name, "printer-state") == 0)
printer_state = atoi (priv->dests[id].options[i].value);
- else if (g_strcmp0 (priv->dests[id].options[i].name, "printer-info") == 0)
- description = g_strdup (priv->dests[id].options[i].value);
else if (g_strcmp0 (priv->dests[id].options[i].name, "printer-state-reasons") == 0)
reason = priv->dests[id].options[i].value;
else if (g_strcmp0 (priv->dests[priv->current_dest].options[i].name, "marker-levels") == 0)
marker_levels = priv->dests[priv->current_dest].options[i].value;
else if (g_strcmp0 (priv->dests[priv->current_dest].options[i].name, "printer-commands") == 0)
printer_commands = priv->dests[priv->current_dest].options[i].value;
+ else if (g_strcmp0 (priv->dests[priv->current_dest].options[i].name, "printer-make-and-model") == 0)
+ printer_make_and_model = g_strdup (priv->dests[priv->current_dest].options[i].value);
}
/* Find the first of the most severe reasons
@@ -341,6 +344,18 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
break;
}
}
+
+ widget = (GtkWidget*)
+ gtk_builder_get_object (priv->builder, "printer-name-label");
+
+ if (printer_name)
+ {
+ gtk_label_set_text (GTK_LABEL (widget), printer_name);
+ g_free (printer_name);
+ }
+ else
+ gtk_label_set_text (GTK_LABEL (widget), none);
+
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-status-label");
@@ -367,23 +382,23 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "printer-description-label");
+ gtk_builder_get_object (priv->builder, "printer-model-label");
- if (description)
+ if (printer_make_and_model)
{
- gtk_label_set_text (GTK_LABEL (widget), description);
- g_free (description);
+ gtk_label_set_text (GTK_LABEL (widget), printer_make_and_model);
+ g_free (printer_make_and_model);
}
else
gtk_label_set_text (GTK_LABEL (widget), none);
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "printer-disable-button");
+ gtk_builder_get_object (priv->builder, "printer-disable-switch");
gtk_widget_set_sensitive (widget, TRUE);
g_signal_handlers_block_by_func (G_OBJECT (widget), printer_disable_cb, self);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), printer_state == 5);
+ gtk_switch_set_active (GTK_SWITCH (widget), printer_state != 5);
g_signal_handlers_unblock_by_func (G_OBJECT (widget), printer_disable_cb, self);
@@ -403,8 +418,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
{
if (g_strcmp0 (available_commands[i], "PrintSelfTestPage") == 0)
test_page_command_available = TRUE;
- if (g_strcmp0 (available_commands[i], "Clean") == 0)
- clean_command_available = TRUE;
}
g_strfreev (available_commands);
}
@@ -413,10 +426,6 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
gtk_builder_get_object (priv->builder, "print-test-page-button");
gtk_widget_set_sensitive (widget, test_page_command_available);
- widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "clean-print-heads-button");
- gtk_widget_set_sensitive (widget, clean_command_available);
-
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "supply-drawing-area");
@@ -461,7 +470,11 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
else
{
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "printer-description-label");
+ gtk_builder_get_object (priv->builder, "printer-name-label");
+ gtk_label_set_text (GTK_LABEL (widget), "");
+
+ widget = (GtkWidget*)
+ gtk_builder_get_object (priv->builder, "printer-status-label");
gtk_label_set_text (GTK_LABEL (widget), "");
widget = (GtkWidget*)
@@ -469,7 +482,11 @@ printer_selection_changed_cb (GtkTreeSelection *selection,
gtk_label_set_text (GTK_LABEL (widget), "");
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "printer-disable-button");
+ gtk_builder_get_object (priv->builder, "printer-model-label");
+ gtk_label_set_text (GTK_LABEL (widget), "");
+
+ widget = (GtkWidget*)
+ gtk_builder_get_object (priv->builder, "printer-disable-switch");
gtk_widget_set_sensitive (widget, FALSE);
}
@@ -1160,8 +1177,9 @@ job_process_cb (GtkButton *button,
}
static void
-printer_disable_cb (GtkToggleButton *togglebutton,
- gpointer user_data)
+printer_disable_cb (GObject *gobject,
+ GParamSpec *pspec,
+ gpointer user_data)
{
CcPrintersPanelPrivate *priv;
CcPrintersPanel *self = (CcPrintersPanel*) user_data;
@@ -1212,10 +1230,7 @@ printer_disable_cb (GtkToggleButton *togglebutton,
g_warning ("%s", ret_error);
}
else
- {
- gtk_toggle_button_set_active (togglebutton, paused);
- actualize_printers_list (self);
- }
+ actualize_printers_list (self);
g_clear_error (&error);
}
@@ -1738,6 +1753,7 @@ enum
{
NOTEBOOK_INFO_PAGE = 0,
NOTEBOOK_JOBS_PAGE,
+ NOTEBOOK_OPTIONS_PAGE,
NOTEBOOK_N_PAGES
};
@@ -1772,6 +1788,21 @@ switch_to_jobs_cb (GtkButton *button,
}
static void
+switch_to_options_cb (GtkButton *button,
+ gpointer user_data)
+{
+ CcPrintersPanelPrivate *priv;
+ CcPrintersPanel *self = (CcPrintersPanel*) user_data;
+ GtkWidget *widget;
+
+ priv = PRINTERS_PANEL_PRIVATE (self);
+
+ widget = (GtkWidget*)
+ gtk_builder_get_object (priv->builder, "notebook");
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (widget), NOTEBOOK_OPTIONS_PAGE);
+}
+
+static void
cc_printers_panel_init (CcPrintersPanel *self)
{
CcPrintersPanelPrivate *priv;
@@ -1831,8 +1862,8 @@ cc_printers_panel_init (CcPrintersPanel *self)
g_signal_connect (widget, "clicked", G_CALLBACK (printer_remove_cb), self);
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "printer-disable-button");
- g_signal_connect (widget, "toggled", G_CALLBACK (printer_disable_cb), self);
+ gtk_builder_get_object (priv->builder, "printer-disable-switch");
+ g_signal_connect (widget, "notify::active", G_CALLBACK (printer_disable_cb), self);
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "allowed-user-remove-button");
@@ -1855,17 +1886,21 @@ cc_printers_panel_init (CcPrintersPanel *self)
g_signal_connect (widget, "clicked", G_CALLBACK (printer_maintenance_cb), self);
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "clean-print-heads-button");
- g_signal_connect (widget, "clicked", G_CALLBACK (printer_maintenance_cb), self);
+ gtk_builder_get_object (priv->builder, "back-button-1");
+ g_signal_connect (widget, "clicked", G_CALLBACK (go_back_cb), self);
widget = (GtkWidget*)
- gtk_builder_get_object (priv->builder, "back-button-1");
+ gtk_builder_get_object (priv->builder, "back-button-2");
g_signal_connect (widget, "clicked", G_CALLBACK (go_back_cb), self);
widget = (GtkWidget*)
gtk_builder_get_object (priv->builder, "printer-jobs-button");
g_signal_connect (widget, "clicked", G_CALLBACK (switch_to_jobs_cb), self);
+ widget = (GtkWidget*)
+ gtk_builder_get_object (priv->builder, "printer-options-button");
+ g_signal_connect (widget, "clicked", G_CALLBACK (switch_to_options_cb), self);
+
/* Set junctions */
widget = (GtkWidget*)
diff --git a/panels/printers/printers.ui b/panels/printers/printers.ui
index 54cb10b..41d65ca 100644
--- a/panels/printers/printers.ui
+++ b/panels/printers/printers.ui
@@ -18,7 +18,7 @@
<object class="GtkScrolledWindow" id="printers-scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="hscrollbar_policy">automatic</property>
+ <property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">automatic</property>
<property name="shadow_type">in</property>
<child>
@@ -88,100 +88,20 @@
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
- <property name="n_rows">7</property>
+ <property name="n_rows">8</property>
<property name="n_columns">3</property>
<property name="column_spacing">10</property>
<property name="row_spacing">6</property>
<child>
- <object class="GtkVBox" id="vbox6">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkScrolledWindow" id="allowed-users-scrolledwindow">
- <property name="height_request">90</property>
- <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">in</property>
- <child>
- <object class="GtkTreeView" id="allowed-users-treeview">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolbar" id="allowed-users-toolbar">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_size_set">True</property>
- <child>
- <object class="GtkToolButton" id="allowed-user-add-button">
- <property name="visible">True</property>
- <property name="label">toolbutton1</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-add-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- <child>
- <object class="GtkToolButton" id="allowed-user-remove-button">
- <property name="visible">True</property>
- <property name="label">toolbutton2</property>
- <property name="use_underline">True</property>
- <property name="icon_name">list-remove-symbolic</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">3</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label7">
- <property name="visible">True</property>
- <property name="xalign">1</property>
- <property name="yalign">0</property>
- <property name="label" translatable="yes" comments="Translators: Users which are allowed to print on this printer.">Share with these users:</property>
- </object>
- <packing>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
<object class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="yalign">0</property>
- <property name="label" translatable="yes" comments="Translators: By supply we mean ink, toner, staples, water, ...">Supply:</property>
+ <property name="label" translatable="yes" comments="Translators: By supply we mean ink, toner, staples, water, ...">Supply</property>
</object>
<packing>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options">GTK_FILL</property>
</packing>
@@ -190,7 +110,7 @@
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes" comments="Translators: Location of the printer (e.g. Lab, 1st floor,...).">Location:</property>
+ <property name="label" translatable="yes" comments="Translators: Location of the printer (e.g. Lab, 1st floor,...).">Location</property>
</object>
<packing>
<property name="top_attach">2</property>
@@ -200,25 +120,14 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="label11">
- <property name="visible">True</property>
- <property name="xalign">1</property>
- <property name="label" translatable="yes" comments="Translators: Description of the printer.">Description:</property>
- </object>
- <packing>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
<object class="GtkDrawingArea" id="supply-drawing-area">
<property name="visible">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>
@@ -238,44 +147,18 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="printer-description-label">
- <property name="visible">True</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">---</property>
- <property name="ellipsize">end</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">3</property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label6">
- <property name="visible">True</property>
- <property name="xalign">1</property>
- <property name="label" translatable="yes" comments="Translators: Status of the printer.">Status:</property>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_FILL</property>
- </packing>
- </child>
- <child>
<object class="GtkLabel" id="printer-status-label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">---</property>
+ <property name="yalign">0</property>
+ <property name="label" translatable="yes">Printing...</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="left_attach">1</property>
- <property name="right_attach">3</property>
+ <property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
- <property name="y_options">GTK_FILL</property>
</packing>
</child>
<child>
@@ -297,8 +180,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
+ <property name="top_attach">7</property>
+ <property name="bottom_attach">8</property>
</packing>
</child>
<child>
@@ -307,8 +190,8 @@
<property name="label" translatable="yes"> </property>
</object>
<packing>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
+ <property name="top_attach">7</property>
+ <property name="bottom_attach">8</property>
<property name="x_options">GTK_FILL</property>
<property name="y_options">GTK_FILL</property>
</packing>
@@ -320,8 +203,8 @@
<property name="label" translatable="yes">Jobs</property>
</object>
<packing>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
@@ -333,8 +216,8 @@
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
@@ -347,8 +230,96 @@
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="printer-name-label">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="yalign">1</property>
+ <property name="label" translatable="yes">Printer</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ <attribute name="scale" value="1.200000"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkImage" id="image1">
+ <property name="visible">True</property>
+ <property name="pixel_size">100</property>
+ <property name="icon_name">printer</property>
+ </object>
+ <packing>
+ <property name="bottom_attach">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label14">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">Model</property>
+ </object>
+ <packing>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label15">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">IP Address</property>
+ </object>
+ <packing>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="printer-model-label">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">---</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="printer-ip-address-label">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">---</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSwitch" id="printer-disable-switch">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options"></property>
+ <property name="y_options"></property>
</packing>
</child>
</object>
@@ -361,7 +332,6 @@
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="homogeneous">True</property>
- <property name="layout_style">end</property>
<child>
<object class="GtkButton" id="print-test-page-button">
<property name="label" translatable="yes" comments="Translators: This button executes command which prints test page.">Print Test Page</property>
@@ -376,8 +346,8 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="clean-print-heads-button">
- <property name="label" translatable="yes" comments="Translators: This button executes command which cleans print heads of the printer.">Clean Print Heads</property>
+ <object class="GtkButton" id="printer-options-button">
+ <property name="label" translatable="yes" comments="Translators: This button opens printer's options tab">Options</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -388,20 +358,6 @@
<property name="position">1</property>
</packing>
</child>
- <child>
- <object class="GtkToggleButton" id="printer-disable-button">
- <property name="label" translatable="yes" comments="Translators: This button pauses printer.">Disable Printer</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="yalign">0.43999999761581421</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">2</property>
- </packing>
- </child>
</object>
<packing>
<property name="expand">False</property>
@@ -570,6 +526,171 @@
<property name="tab_fill">False</property>
</packing>
</child>
+ <child>
+ <object class="GtkVBox" id="vbox5">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">10</property>
+ <child>
+ <object class="GtkTable" id="table2">
+ <property name="visible">True</property>
+ <property name="n_columns">4</property>
+ <property name="homogeneous">True</property>
+ <child>
+ <object class="GtkLabel" id="label6">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes" comments="Translators: This tab contains list of active print jobs of the selected printer">Printer Options</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">3</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label7">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">3</property>
+ <property name="right_attach">4</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkHBox" id="hbox3">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkButton" id="back-button-2">
+ <property name="label" translatable="yes" comments="Translators: Switch back to printer's info tab">Back</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkViewport" id="viewport1">
+ <property name="visible">True</property>
+ <property name="resize_mode">queue</property>
+ <child>
+ <object class="GtkFrame" id="frame1">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkVBox" id="vbox6">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkScrolledWindow" id="allowed-users-scrolledwindow">
+ <property name="height_request">90</property>
+ <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">in</property>
+ <child>
+ <object class="GtkTreeView" id="allowed-users-treeview">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToolbar" id="allowed-users-toolbar">
+ <property name="visible">True</property>
+ <property name="icon_size">1</property>
+ <property name="icon_size_set">True</property>
+ <child>
+ <object class="GtkToolButton" id="allowed-user-add-button">
+ <property name="visible">True</property>
+ <property name="label">toolbutton1</property>
+ <property name="use_underline">True</property>
+ <property name="icon_name">list-add-symbolic</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkToolButton" id="allowed-user-remove-button">
+ <property name="visible">True</property>
+ <property name="label">toolbutton2</property>
+ <property name="use_underline">True</property>
+ <property name="icon_name">list-remove-symbolic</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label11">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Allowed users</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="label5">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Options</property>
+ </object>
+ <packing>
+ <property name="position">2</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="position">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]