[gnome-control-center] universal-access: Make the typing assistant switch work
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] universal-access: Make the typing assistant switch work
- Date: Wed, 23 Feb 2011 19:20:52 +0000 (UTC)
commit a50f471715c3f4ae57dfb1e9ce33b9c4a89101e9
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 23 19:20:13 2011 +0000
universal-access: Make the typing assistant switch work
panels/universal-access/cc-ua-panel.c | 9 +++++++++
panels/universal-access/uap.ui | 5 ++---
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index 2ee4a89..3c83e38 100644
--- a/panels/universal-access/cc-ua-panel.c
+++ b/panels/universal-access/cc-ua-panel.c
@@ -174,6 +174,11 @@ cc_ua_panel_class_finalize (CcUaPanelClass *klass)
{
}
+static gchar *typing_assistant_section[] = {
+ "typing_assistant_preferences_button",
+ NULL
+};
+
static gchar *sticky_keys_section[] = {
"typing_sticky_keys_disable_two_keys_checkbutton",
"typing_sticky_keys_beep_modifier_checkbutton",
@@ -688,6 +693,10 @@ cc_ua_panel_init_keyboard (CcUaPanel *self)
CcUaPanelPrivate *priv = self->priv;
GtkWidget *w;
+ /* Typing assistant (on-screen keyboard) */
+ w = WID (priv->builder, "typing_assistant_switch");
+ settings_on_off_editor_new (priv, priv->application_settings, "screen-keyboard-enabled", w, typing_assistant_section);
+
/* enable shortcuts */
w = WID (priv->builder, "typing_keyboard_toggle_checkbox");
g_settings_bind (priv->kb_settings, "enable", w, "active", G_SETTINGS_BIND_DEFAULT);
diff --git a/panels/universal-access/uap.ui b/panels/universal-access/uap.ui
index 7812e80..694dee3 100644
--- a/panels/universal-access/uap.ui
+++ b/panels/universal-access/uap.ui
@@ -1173,7 +1173,7 @@
<property name="n_columns">3</property>
<property name="column_spacing">24</property>
<child>
- <object class="GtkLabel" id="label43">
+ <object class="GtkLabel" id="typing_assistant_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Use an alternative form of text input</property>
@@ -1206,14 +1206,13 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="typing_assistent_preferences_button">
+ <object class="GtkButton" id="typing_assistant_preferences_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<child>
<object class="GtkLabel" id="seeing_zoom_preferences_label1">
<property name="visible">True</property>
- <property name="sensitive">False</property>
<property name="label" translatable="yes">Options...</property>
<property name="use_markup">True</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]