summaryrefslogtreecommitdiff
path: root/modules/printbackends
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-08-09 20:09:02 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-08-18 18:27:39 -0400
commit0cb1f9a1809fbf8cba858f3b3fd839122635c3c6 (patch)
tree53fbc34ae65bf3085a36a040fe6bcebadcd9df54 /modules/printbackends
parentf65265fff9f53249f9ee53eff75b468be3cb6c07 (diff)
downloadgtk+-0cb1f9a1809fbf8cba858f3b3fd839122635c3c6.tar.gz
Make print backends use standard icon names for printers
This is to make the print dialog work with the previous commit. See bug 626474.
Diffstat (limited to 'modules/printbackends')
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c10
-rw-r--r--modules/printbackends/file/gtkprintbackendfile.c2
-rw-r--r--modules/printbackends/lpr/gtkprintbackendlpr.c2
-rw-r--r--modules/printbackends/papi/gtkprintbackendpapi.c2
-rw-r--r--modules/printbackends/test/gtkprintbackendtest.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 9d3a1eb66a..67d2d47dec 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -1326,7 +1326,7 @@ cups_request_printer_info_cb (GtkPrintBackendCups *backend,
response = gtk_cups_result_get_response (result);
/* TODO: determine printer type and use correct icon */
- gtk_printer_set_icon_name (printer, "gtk-print");
+ gtk_printer_set_icon_name (printer, "printer");
state_msg = "";
loc = "";
@@ -2047,13 +2047,13 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
/* Set printer icon according to importance
(none, report, warning, error - report is omitted). */
if (printer_state_reason_level == 3)
- gtk_printer_set_icon_name (printer, "gtk-print-error");
+ gtk_printer_set_icon_name (printer, "printer-error");
else if (printer_state_reason_level == 2)
- gtk_printer_set_icon_name (printer, "gtk-print-warning");
+ gtk_printer_set_icon_name (printer, "printer-warning");
else if (gtk_printer_is_paused (printer))
- gtk_printer_set_icon_name (printer, "gtk-print-paused");
+ gtk_printer_set_icon_name (printer, "printer-paused");
else
- gtk_printer_set_icon_name (printer, "gtk-print");
+ gtk_printer_set_icon_name (printer, "printer");
if (status_changed)
g_signal_emit_by_name (GTK_PRINT_BACKEND (backend),
diff --git a/modules/printbackends/file/gtkprintbackendfile.c b/modules/printbackends/file/gtkprintbackendfile.c
index 2d86bd50e4..27cc0a4e98 100644
--- a/modules/printbackends/file/gtkprintbackendfile.c
+++ b/modules/printbackends/file/gtkprintbackendfile.c
@@ -496,7 +496,7 @@ gtk_print_backend_file_init (GtkPrintBackendFile *backend)
NULL);
gtk_printer_set_has_details (printer, TRUE);
- gtk_printer_set_icon_name (printer, "gtk-save");
+ gtk_printer_set_icon_name (printer, "document-save");
gtk_printer_set_is_active (printer, TRUE);
gtk_print_backend_add_printer (GTK_PRINT_BACKEND (backend), printer);
diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.c b/modules/printbackends/lpr/gtkprintbackendlpr.c
index 0ee856cec2..d84ab9a7e1 100644
--- a/modules/printbackends/lpr/gtkprintbackendlpr.c
+++ b/modules/printbackends/lpr/gtkprintbackendlpr.c
@@ -396,7 +396,7 @@ gtk_print_backend_lpr_init (GtkPrintBackendLpr *backend)
GTK_PRINT_BACKEND (backend),
TRUE);
gtk_printer_set_has_details (printer, TRUE);
- gtk_printer_set_icon_name (printer, "gtk-print");
+ gtk_printer_set_icon_name (printer, "printer");
gtk_printer_set_is_active (printer, TRUE);
gtk_printer_set_is_default (printer, TRUE);
diff --git a/modules/printbackends/papi/gtkprintbackendpapi.c b/modules/printbackends/papi/gtkprintbackendpapi.c
index d349010583..c10b207d91 100644
--- a/modules/printbackends/papi/gtkprintbackendpapi.c
+++ b/modules/printbackends/papi/gtkprintbackendpapi.c
@@ -606,7 +606,7 @@ papi_get_printer_list (GtkPrintBackendPapi *papi_backend)
gtk_printer_set_is_default (printer, TRUE);
}
- gtk_printer_set_icon_name (printer, "gtk-print");
+ gtk_printer_set_icon_name (printer, "printer");
gtk_print_backend_add_printer (backend, printer);
gtk_printer_set_is_active (printer, TRUE);
diff --git a/modules/printbackends/test/gtkprintbackendtest.c b/modules/printbackends/test/gtkprintbackendtest.c
index 44912c0e06..f40c03cbdb 100644
--- a/modules/printbackends/test/gtkprintbackendtest.c
+++ b/modules/printbackends/test/gtkprintbackendtest.c
@@ -475,7 +475,7 @@ gtk_print_backend_test_init (GtkPrintBackendTest *backend)
g_message ("TEST Backend: Adding printer %d\n", i);
gtk_printer_set_has_details (printer, FALSE);
- gtk_printer_set_icon_name (printer, "gtk-delete"); /* use a delete icon just for fun */
+ gtk_printer_set_icon_name (printer, "edit-delete"); /* use a delete icon just for fun */
gtk_printer_set_is_active (printer, TRUE);
gtk_print_backend_add_printer (GTK_PRINT_BACKEND (backend), printer);