diff options
author | John Ralls <jralls@ceridwen.us> | 2012-02-25 17:45:04 -0800 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2012-04-23 14:47:33 -0700 |
commit | 399f31021c921e3a2479fe8ff3e18b8185e4cf04 (patch) | |
tree | 8a879044dd849e70578bc93f5efac287b2f2f766 | |
parent | 3100279bf102030329ac1f22a2f9d94daea23bfc (diff) | |
download | gtk+-399f31021c921e3a2479fe8ff3e18b8185e4cf04.tar.gz |
Create enum PrinterStateLevel
Fixes "magic number" in printer_state_reason_level.
-rw-r--r-- | 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 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, |