[gnome-control-center] region: Remove unneeded signal blockers
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Remove unneeded signal blockers
- Date: Mon, 16 Jul 2012 14:25:08 +0000 (UTC)
commit 661019dadcdfe08a7d184c37a881fafea254a10e
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 16 15:24:23 2012 +0100
region: Remove unneeded signal blockers
The value isn't going to change from under us, as the settings
object is in delayed mode.
panels/region/gnome-region-panel-input.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-input.c b/panels/region/gnome-region-panel-input.c
index 1eae585..8cd3736 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -56,7 +56,6 @@ enum {
};
static GSettings *input_sources_settings = NULL;
-static gulong input_sources_settings_changed_id = 0;
static GnomeXkbInfo *xkb_info = NULL;
#ifdef HAVE_IBUS
@@ -422,9 +421,7 @@ update_configuration (GtkTreeModel *model)
}
while (gtk_tree_model_iter_next (model, &iter));
- g_signal_handler_block (input_sources_settings, input_sources_settings_changed_id);
g_settings_set_value (input_sources_settings, KEY_INPUT_SOURCES, g_variant_builder_end (&builder));
- g_signal_handler_unblock (input_sources_settings, input_sources_settings_changed_id);
exit:
g_settings_apply (input_sources_settings);
@@ -969,10 +966,10 @@ setup_input_tabs (GtkBuilder *builder,
g_signal_connect (WID("jump-to-shortcuts"), "activate-link",
G_CALLBACK (go_to_shortcuts), panel);
- input_sources_settings_changed_id = g_signal_connect (G_OBJECT (input_sources_settings),
- "changed::" KEY_INPUT_SOURCES,
- G_CALLBACK (input_sources_changed),
- builder);
+ g_signal_connect (G_OBJECT (input_sources_settings),
+ "changed::" KEY_INPUT_SOURCES,
+ G_CALLBACK (input_sources_changed),
+ builder);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]