Use G_SOURCE_CONTINUE/REMOVE
Now that GLib provides these macros, we should use them to make the code more readable.
This commit is contained in:
@ -802,7 +802,7 @@ papi_display_printer_status (gpointer user_data)
|
||||
papi_printer = GTK_PRINTER_PAPI (printer);
|
||||
if (papiServiceCreate (&service, NULL, NULL, NULL, NULL, PAPI_ENCRYPT_NEVER,
|
||||
NULL) != PAPI_OK)
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
|
||||
if (papiPrinterQuery (service, papi_printer->printer_name, NULL, NULL,
|
||||
¤t_printer) != PAPI_OK)
|
||||
@ -845,7 +845,7 @@ papi_display_printer_status (gpointer user_data)
|
||||
papiServiceDestroy (service);
|
||||
gtk_printer_set_has_details (printer, TRUE);
|
||||
|
||||
return FALSE;
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user