summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ralls <jralls@ceridwen.us>2012-02-25 17:45:04 -0800
committerJohn Ralls <jralls@ceridwen.us>2012-04-23 14:47:33 -0700
commit399f31021c921e3a2479fe8ff3e18b8185e4cf04 (patch)
tree8a879044dd849e70578bc93f5efac287b2f2f766
parent3100279bf102030329ac1f22a2f9d94daea23bfc (diff)
downloadgtk+-399f31021c921e3a2479fe8ff3e18b8185e4cf04.tar.gz
Create enum PrinterStateLevel
Fixes "magic number" in printer_state_reason_level.
-rw-r--r--modules/printbackends/cups/gtkprintbackendcups.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
index 875c08083d..ed138fd507 100644
--- a/modules/printbackends/cups/gtkprintbackendcups.c
+++ b/modules/printbackends/cups/gtkprintbackendcups.c
@@ -1716,6 +1716,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,