[gnome-flashback] shell: unwatch bus names
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] shell: unwatch bus names
- Date: Thu, 2 Jan 2020 10:57:19 +0000 (UTC)
commit fb0f5e80812a5f12cea977c4f09d9ce1f02c20b6
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Jan 2 02:34:00 2020 +0200
shell: unwatch bus names
gnome-flashback/libshell/flashback-shell.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/gnome-flashback/libshell/flashback-shell.c b/gnome-flashback/libshell/flashback-shell.c
index ea867ce..3df316e 100644
--- a/gnome-flashback/libshell/flashback-shell.c
+++ b/gnome-flashback/libshell/flashback-shell.c
@@ -119,6 +119,14 @@ real_ungrab (FlashbackShell *shell,
return gf_keybindings_ungrab (shell->keybindings, action);
}
+static void
+remove_watch (gpointer key,
+ gpointer value,
+ gpointer user_data)
+{
+ g_bus_unwatch_name (GPOINTER_TO_UINT (value));
+}
+
static gboolean
remove_accelerator (gpointer key,
gpointer value,
@@ -493,6 +501,7 @@ flashback_shell_finalize (GObject *object)
if (shell->grabbers)
{
+ g_hash_table_foreach (shell->grabbers, remove_watch, NULL);
g_hash_table_destroy (shell->grabbers);
shell->grabbers = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]