universal-access: Make the typing assistant switch work
This commit is contained in:
parent
1b39b18b7c
commit
a50f471715
2 changed files with 11 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue