[gnome-control-center] region: Cancel async permission requests when panel is closed
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Cancel async permission requests when panel is closed
- Date: Mon, 10 Sep 2018 15:51:03 +0000 (UTC)
commit 37d02369b77a57b750b74a8fa2c59ff401f31b98
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Sep 10 12:16:10 2018 +1200
region: Cancel async permission requests when panel is closed
panels/region/cc-region-panel.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 0023e3ab2..b20106d09 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -524,7 +524,7 @@ activate_language_row (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = CHOOSE_LANGUAGE;
g_permission_acquire_async (self->permission,
- NULL,
+ self->cancellable,
permission_acquired,
self);
}
@@ -534,7 +534,7 @@ activate_language_row (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = CHOOSE_REGION;
g_permission_acquire_async (self->permission,
- NULL,
+ self->cancellable,
permission_acquired,
self);
}
@@ -1069,7 +1069,7 @@ add_input (CcRegionPanel *self)
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = ADD_INPUT;
g_permission_acquire_async (self->permission,
- NULL,
+ self->cancellable,
permission_acquired,
self);
}
@@ -1130,7 +1130,7 @@ remove_selected_input (CcRegionPanel *self)
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = REMOVE_INPUT;
g_permission_acquire_async (self->permission,
- NULL,
+ self->cancellable,
permission_acquired,
self);
}
@@ -1180,7 +1180,7 @@ move_selected_input (CcRegionPanel *self,
} else if (g_permission_get_can_acquire (self->permission)) {
self->op = op;
g_permission_acquire_async (self->permission,
- NULL,
+ self->cancellable,
permission_acquired,
self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]