Create enum PrinterStateLevel

Fixes "magic number" in printer_state_reason_level.
This commit is contained in:
John Ralls 2012-02-19 13:15:40 -08:00
parent 60969ff951
commit 4945b832b2

View File

@ -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,