[gnome-flashback] input-sources: clear mru lists when input sources changes
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: clear mru lists when input sources changes
- Date: Mon, 13 Mar 2017 14:41:13 +0000 (UTC)
commit ae8161efac951ff773372afc51197115c07c2a8b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Mar 13 16:39:53 2017 +0200
input-sources: clear mru lists when input sources changes
.../libinput-sources/gf-input-source-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-source-manager.c
b/gnome-flashback/libinput-sources/gf-input-source-manager.c
index 11da94b..224e3b7 100644
--- a/gnome-flashback/libinput-sources/gf-input-source-manager.c
+++ b/gnome-flashback/libinput-sources/gf-input-source-manager.c
@@ -865,6 +865,9 @@ sources_changed_cb (GfInputSourceSettings *settings,
manager->ibus_sources = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, g_object_unref);
+ g_clear_pointer (&manager->mru_sources, g_list_free);
+ g_clear_pointer (&manager->mru_sources_backup, g_list_free);
+
manager->current_source = NULL;
sources_by_name = g_hash_table_new_full (g_str_hash, g_str_equal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]