Create enum PrinterStateLevel
Fixes "magic number" in printer_state_reason_level.
This commit is contained in:
parent
60969ff951
commit
4945b832b2
@ -1689,6 +1689,13 @@ static const char * printer_strings[] =
|
|||||||
N_("There is a problem on printer '%s'.")
|
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
|
static void
|
||||||
cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
|
cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
|
||||||
GtkCupsResult *result,
|
GtkCupsResult *result,
|
||||||
|
Loading…
Reference in New Issue
Block a user