diff options
author | Rui Matos <tiagomatos@gmail.com> | 2013-01-30 19:22:35 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2013-02-19 12:25:53 +0100 |
commit | 8740bf03c8e8734b497928e723b020941f18e660 (patch) | |
tree | 1f38d169ed7abc506a07aa62a2569dd1c3a35ca0 | |
parent | 5aa88834c0601b1a3a7958d74612e947b2f728a0 (diff) | |
download | gnome-control-center-8740bf03c8e8734b497928e723b020941f18e660.tar.gz |
region: Fix input source rows selection getting lost
-rw-r--r-- | panels/region/cc-region-panel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c index 7fd87493e..f4681cf05 100644 --- a/panels/region/cc-region-panel.c +++ b/panels/region/cc-region-panel.c @@ -766,15 +766,17 @@ input_sources_changed (GSettings *settings, { CcRegionPanelPrivate *priv = self->priv; GtkWidget *selected; - const gchar *id = NULL; + gchar *id = NULL; selected = egg_list_box_get_selected_child (EGG_LIST_BOX (priv->input_list)); if (selected) - id = (const gchar *)g_object_get_data (G_OBJECT (selected), "id"); + id = g_strdup (g_object_get_data (G_OBJECT (selected), "id")); clear_input_sources (self); add_input_sources_from_settings (self); - if (id) + if (id) { select_input (self, id); + g_free (id); + } } |