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:
Marek Kasik 2012-08-07 11:54:11 +02:00
parent aa867311c2
commit a6b2db1e17
3 changed files with 103 additions and 23 deletions

View file

@ -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);