[gtk+/gtk-3-4] Create enum PrinterStateLevel
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] Create enum PrinterStateLevel
- Date: Mon, 23 Apr 2012 21:38:07 +0000 (UTC)
commit c687883b200391d3f288dba4eeacef0db99b0775
Author: John Ralls <jralls ceridwen us>
Date: Sun Feb 19 13:15:40 2012 -0800
Create enum PrinterStateLevel
Fixes "magic number" in printer_state_reason_level.
modules/printbackends/cups/gtkprintbackendcups.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index b850503..f921ba4 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -1689,6 +1689,13 @@ static const char * printer_strings[] =
N_("There is a problem on printer '%s'.")
};
+typedef enum
+ {
+ GTK_PRINTER_STATE_LEVEL_NONE = 0,
+ GTK_PRINTER_STATE_LEVEL_INFO = 1,
+ GTK_PRINTER_STATE_LEVEL_WARNING = 2,
+ GTK_PRINTER_STATE_LEVEL_ERROR = 3
+ } PrinterStateLevel;
static void
cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
GtkCupsResult *result,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]