summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooseronlinepk.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-10-03 11:47:09 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-10-04 11:34:10 -0400
commit569b5ffd5bf687cbb37e17367f1d7ac7657eee2e (patch)
tree0d430d4f5fa43b25899769a9e02ed7ad54b27e9d /gtk/gtkappchooseronlinepk.c
parent06dbbad5a7a7a6f50128fd607b650bd7ea4b5764 (diff)
downloadgtk+-569b5ffd5bf687cbb37e17367f1d7ac7657eee2e.tar.gz
appchooser: add a GCancellable to the search operation
So that we can cancel it when the dialog is destroyed. https://bugzilla.gnome.org/show_bug.cgi?id=651818
Diffstat (limited to 'gtk/gtkappchooseronlinepk.c')
-rw-r--r--gtk/gtkappchooseronlinepk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkappchooseronlinepk.c b/gtk/gtkappchooseronlinepk.c
index 4b6df0ec22..7bfc84de9c 100644
--- a/gtk/gtkappchooseronlinepk.c
+++ b/gtk/gtkappchooseronlinepk.c
@@ -124,6 +124,7 @@ static void
pk_search_mime_async (GtkAppChooserOnline *obj,
const gchar *content_type,
GtkWindow *parent,
+ GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -152,7 +153,7 @@ pk_search_mime_async (GtkAppChooserOnline *obj,
"hide-confirm-search"),
G_DBUS_CALL_FLAGS_NONE,
G_MAXINT, /* no timeout */
- NULL,
+ cancellable,
install_mime_types_ready_cb,
self);
}