region: Fix input source options not being applied.

This was broken in a86cf1eca2 (3.32) when the input options dialog was converted
into a GtkPopover. Previously two GSettings objects were used, with one set to
'delay-apply' mode. The input source option didn't apply the changes.

The 'delay-apply' mode is from the original commit d3852fc831, however code was
simplified in b3199dd to only set one setting. This meant that the delay is no
longer necessary.

Fixes #440
This commit is contained in:
Robert Ancell 2019-04-09 14:08:03 +12:00
parent ece0d9c26e
commit d34bbda386

View file

@ -951,7 +951,6 @@ set_input_settings (CcRegionPanel *self)
} }
g_settings_set_value (self->input_settings, KEY_INPUT_SOURCES, g_variant_builder_end (&builder)); g_settings_set_value (self->input_settings, KEY_INPUT_SOURCES, g_variant_builder_end (&builder));
g_settings_apply (self->input_settings);
} }
static void set_localed_input (CcRegionPanel *self); static void set_localed_input (CcRegionPanel *self);
@ -1204,7 +1203,6 @@ static void
setup_input_section (CcRegionPanel *self) setup_input_section (CcRegionPanel *self)
{ {
self->input_settings = g_settings_new (GNOME_DESKTOP_INPUT_SOURCES_DIR); self->input_settings = g_settings_new (GNOME_DESKTOP_INPUT_SOURCES_DIR);
g_settings_delay (self->input_settings);
self->xkb_info = gnome_xkb_info_new (); self->xkb_info = gnome_xkb_info_new ();