printers: Cancel async operations properly
Don't call callbacks of async functions called from Printers panel if they were cancelled. User data are not valid in that case (rhbz#845496).
This commit is contained in:
parent
aa867311c2
commit
a6b2db1e17
3 changed files with 103 additions and 23 deletions
|
@ -161,8 +161,9 @@ void get_ppd_names_async (gchar *printer_name,
|
|||
typedef void (*GAPCallback) (PPDList *ppds,
|
||||
gpointer user_data);
|
||||
|
||||
void get_all_ppds_async (GAPCallback callback,
|
||||
gpointer user_data);
|
||||
void get_all_ppds_async (GCancellable *cancellable,
|
||||
GAPCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
PPDList *ppd_list_copy (PPDList *list);
|
||||
void ppd_list_free (PPDList *list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue