[gtk+/gtk-2-24] Create enum PrinterStateLevel



commit 399f31021c921e3a2479fe8ff3e18b8185e4cf04
Author: John Ralls <jralls ceridwen us>
Date:   Sat Feb 25 17:45:04 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 875c080..ed138fd 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]