[gnome-control-center/wip/region-panel: 22/42] region: Fix input source rows selection getting lost
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/region-panel: 22/42] region: Fix input source rows selection getting lost
- Date: Wed, 13 Feb 2013 23:38:34 +0000 (UTC)
commit 1f6053a1f12e3b451a41413e0a501564d5230b8b
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Jan 30 19:22:35 2013 +0100
region: Fix input source rows selection getting lost
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 80ea7e0..baf6903 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);
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]