[gtk+] Create enum PrinterStateLevel



commit 4945b832b26fdb3e4673a3a9d71fb9f98f4eccc5
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 f26214a..f38a16c 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]