[gnome-control-center/wip/msanchez/printers-clean-heads: 2/6] printers: Added stubs for the new action 'Clean Print Heads'
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/msanchez/printers-clean-heads: 2/6] printers: Added stubs for the new action 'Clean Print Heads'
- Date: Fri, 29 Apr 2016 11:54:46 +0000 (UTC)
commit 911d2ac03680aeaeed269ec3545dbaef10618cad
Author: Mario Sanchez Prada <mario endlessm com>
Date: Fri Apr 29 12:05:21 2016 +0100
printers: Added stubs for the new action 'Clean Print Heads'
Added the necessary xml bits in the UI file, plus an empty callback function.
panels/printers/pp-printer-entry.c | 8 ++++++++
panels/printers/printer-entry.ui | 17 ++++++++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/panels/printers/pp-printer-entry.c b/panels/printers/pp-printer-entry.c
index 1e6e863..79ed44b 100644
--- a/panels/printers/pp-printer-entry.c
+++ b/panels/printers/pp-printer-entry.c
@@ -325,6 +325,13 @@ set_as_default_printer (GtkToggleButton *button,
}
static void
+clean_heads (GtkButton *button,
+ PpPrinterEntry *self)
+{
+ /* TODO: not implemented */
+}
+
+static void
remove_printer (GtkButton *button,
PpPrinterEntry *self)
{
@@ -542,6 +549,7 @@ pp_printer_entry_class_init (PpPrinterEntryClass *klass)
gtk_widget_class_bind_template_callback (widget_class, on_show_printer_options_dialog);
gtk_widget_class_bind_template_callback (widget_class, on_show_printer_details_dialog);
gtk_widget_class_bind_template_callback (widget_class, set_as_default_printer);
+ gtk_widget_class_bind_template_callback (widget_class, clean_heads);
gtk_widget_class_bind_template_callback (widget_class, remove_printer);
gtk_widget_class_bind_template_callback (widget_class, show_jobs_dialog);
}
diff --git a/panels/printers/printer-entry.ui b/panels/printers/printer-entry.ui
index e0a84c7..cd16343 100644
--- a/panels/printers/printer-entry.ui
+++ b/panels/printers/printer-entry.ui
@@ -29,6 +29,17 @@
</packing>
</child>
<child>
+ <object class="GtkModelButton" id="clean_heads_menuitem">
+ <property name="visible">False</property>
+ <property name="text" translatable="yes" comments="Translators: This button executes command
which cleans print heads of the printer.">Clean Print Heads</property>
+ <signal name="clicked" handler="clean_heads"/>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">2</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkCheckButton" id="printer_default_checkbutton">
<property name="visible">True</property>
<property name="valign">center</property>
@@ -36,7 +47,7 @@
</object>
<packing>
<property name="left-attach">0</property>
- <property name="top-attach">2</property>
+ <property name="top-attach">3</property>
</packing>
</child>
<child>
@@ -47,7 +58,7 @@
</object>
<packing>
<property name="left-attach">1</property>
- <property name="top-attach">2</property>
+ <property name="top-attach">3</property>
</packing>
</child>
<child>
@@ -58,7 +69,7 @@
</object>
<packing>
<property name="left-attach">1</property>
- <property name="top-attach">3</property>
+ <property name="top-attach">4</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]