Spawn the accessibility tab of the keyboard capplet instead of
2008-01-02 Denis Washington <denisw@svn.gnome.org> * accessibility/at-properties/main.c: (cb_keyboard_preferences): Spawn the accessibility tab of the keyboard capplet instead of at-properties. * capplets/keyboard/gnome-keyboard-properties.c: Add --a11y command-line option to show the Accessibility tab when started. svn path=/trunk/; revision=8365
This commit is contained in:
parent
7d7bef7786
commit
d528e9f4e2
4 changed files with 26 additions and 2 deletions
|
@ -236,6 +236,7 @@ main (int argc, char **argv)
|
|||
static gboolean apply_only = FALSE;
|
||||
static gboolean get_legacy = FALSE;
|
||||
static gboolean switch_to_typing_break_page = FALSE;
|
||||
static gboolean switch_to_a11y_page = FALSE;
|
||||
|
||||
static GOptionEntry cap_options[] = {
|
||||
{"apply", 0, 0, G_OPTION_ARG_NONE, &apply_only,
|
||||
|
@ -254,6 +255,11 @@ main (int argc, char **argv)
|
|||
N_
|
||||
("Start the page with the typing break settings showing"),
|
||||
NULL},
|
||||
{"a11y", 0, 0, G_OPTION_ARG_NONE,
|
||||
&switch_to_a11y_page,
|
||||
N_
|
||||
("Start the page with the accessibility settings showing"),
|
||||
NULL},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
|
@ -291,8 +297,16 @@ main (int argc, char **argv)
|
|||
gtk_notebook_set_current_page (GTK_NOTEBOOK
|
||||
(WID
|
||||
("keyboard_notebook")),
|
||||
3);
|
||||
4);
|
||||
}
|
||||
else if (switch_to_a11y_page) {
|
||||
gtk_notebook_set_current_page (GTK_NOTEBOOK
|
||||
(WID
|
||||
("keyboard_notebook")),
|
||||
2);
|
||||
|
||||
}
|
||||
|
||||
capplet_set_icon (WID ("keyboard_dialog"),
|
||||
"gnome-dev-keyboard");
|
||||
gtk_widget_show (WID ("keyboard_dialog"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue