region: Fix input source rows selection getting lost
This commit is contained in:
parent
5aa88834c0
commit
8740bf03c8
1 changed files with 5 additions and 3 deletions
|
@ -766,15 +766,17 @@ input_sources_changed (GSettings *settings,
|
||||||
{
|
{
|
||||||
CcRegionPanelPrivate *priv = self->priv;
|
CcRegionPanelPrivate *priv = self->priv;
|
||||||
GtkWidget *selected;
|
GtkWidget *selected;
|
||||||
const gchar *id = NULL;
|
gchar *id = NULL;
|
||||||
|
|
||||||
selected = egg_list_box_get_selected_child (EGG_LIST_BOX (priv->input_list));
|
selected = egg_list_box_get_selected_child (EGG_LIST_BOX (priv->input_list));
|
||||||
if (selected)
|
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);
|
clear_input_sources (self);
|
||||||
add_input_sources_from_settings (self);
|
add_input_sources_from_settings (self);
|
||||||
if (id)
|
if (id) {
|
||||||
select_input (self, id);
|
select_input (self, id);
|
||||||
|
g_free (id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue