[gnome-control-center] keyboard: Simplify GtkBuilder calls
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Simplify GtkBuilder calls
- Date: Fri, 26 Aug 2011 17:32:18 +0000 (UTC)
commit 456cd5583927ef0a0c337420f4bc96462d6edf3d
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 26 18:31:52 2011 +0100
keyboard: Simplify GtkBuilder calls
panels/keyboard/keyboard-general.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/panels/keyboard/keyboard-general.c b/panels/keyboard/keyboard-general.c
index d8a9415..7f1a00e 100644
--- a/panels/keyboard/keyboard-general.c
+++ b/panels/keyboard/keyboard-general.c
@@ -81,29 +81,29 @@ keyboard_general_init (CcPanel *panel, GtkBuilder *builder)
interface_settings = g_settings_new ("org.gnome.desktop.interface");
g_settings_bind (keyboard_settings, "repeat",
- gtk_builder_get_object (builder, "repeat_toggle"), "active",
+ WID ("repeat_toggle"), "active",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (keyboard_settings, "repeat",
- gtk_builder_get_object (builder, "repeat_table"), "sensitive",
+ WID ("repeat_table"), "sensitive",
G_SETTINGS_BIND_GET);
g_settings_bind (keyboard_settings, "delay",
- gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (builder, "repeat_delay_scale"))), "value",
+ gtk_range_get_adjustment (GTK_RANGE (WID ("repeat_delay_scale"))), "value",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind_with_mapping (keyboard_settings, "repeat-interval",
- gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (builder, "repeat_speed_scale"))), "value",
+ gtk_range_get_adjustment (GTK_RANGE (WID ("repeat_speed_scale"))), "value",
G_SETTINGS_BIND_DEFAULT,
get_rate, set_rate, NULL, NULL);
g_settings_bind (interface_settings, "cursor-blink",
- gtk_builder_get_object (builder, "cursor_toggle"), "active",
+ WID ("cursor_toggle"), "active",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (interface_settings, "cursor-blink",
- gtk_builder_get_object (builder, "cursor_table"), "sensitive",
+ WID ("cursor_table"), "sensitive",
G_SETTINGS_BIND_GET);
g_settings_bind (interface_settings, "cursor-blink-time",
- gtk_range_get_adjustment (GTK_RANGE (gtk_builder_get_object (builder, "cursor_blink_time_scale"))), "value",
+ gtk_range_get_adjustment (GTK_RANGE (WID ("cursor_blink_time_scale"))), "value",
G_SETTINGS_BIND_DEFAULT);
g_signal_connect (WID ("linkbutton"), "activate-link",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]