Patch by: Patrick Wade <patrick.wade@sun.com>
2008-03-27 Jens Granseuer <jensgr@gmx.net> Patch by: Patrick Wade <patrick.wade@sun.com> * at-enable-dialog.glade: * main.c: (create_dialog), (cb_at_preferences), (cb_keyboard_preferences), (cb_mouse_preferences), (cb_login_preferences), (setup_dialog): add button to launch mouse accessibility properties (bug #515078) 2008-03-27 Jens Granseuer <jensgr@gmx.net> Patch by: Patrick Wade <patrick.wade@sun.com> * gnome-mouse-properties.c: (main): * gnome-mouse-properties.glade: add support for starting the capplet on the appearance tab (required by bug #515078) svn path=/trunk/; revision=8597
This commit is contained in:
parent
a0dcc1366a
commit
debb696c49
6 changed files with 95 additions and 9 deletions
|
@ -31,6 +31,9 @@ create_dialog (void)
|
|||
image = gtk_image_new_from_stock (GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_BUTTON);
|
||||
gtk_button_set_image (GTK_BUTTON (WID ("keyboard_button")), image);
|
||||
|
||||
image = gtk_image_new_from_stock (GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_BUTTON);
|
||||
gtk_button_set_image (GTK_BUTTON (WID ("mouse_button")), image);
|
||||
|
||||
image = gtk_image_new_from_stock (GTK_STOCK_JUMP_TO, GTK_ICON_SIZE_BUTTON);
|
||||
gtk_button_set_image (GTK_BUTTON (WID ("login_button")), image);
|
||||
|
||||
|
@ -47,19 +50,25 @@ create_dialog (void)
|
|||
static void
|
||||
cb_at_preferences (GtkDialog *dialog, gint response_id)
|
||||
{
|
||||
g_spawn_command_line_async("gnome-default-applications-properties", NULL);
|
||||
g_spawn_command_line_async ("gnome-default-applications-properties", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
cb_keyboard_preferences (GtkDialog *dialog, gint response_id)
|
||||
{
|
||||
g_spawn_command_line_async("gnome-keyboard-properties --a11y", NULL);
|
||||
g_spawn_command_line_async ("gnome-keyboard-properties --a11y", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
cb_mouse_preferences (GtkDialog *dialog, gint response_id)
|
||||
{
|
||||
g_spawn_command_line_async ("gnome-mouse-properties --show-page=accessibility", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
cb_login_preferences (GtkDialog *dialog, gint response_id)
|
||||
{
|
||||
g_spawn_command_line_async("gdmsetup", NULL);
|
||||
g_spawn_command_line_async ("gdmsetup", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -107,8 +116,8 @@ at_enable_toggled (GtkToggleButton *toggle_button,
|
|||
}
|
||||
|
||||
static void
|
||||
at_enable_update (GConfClient *client,
|
||||
GladeXML *dialog)
|
||||
at_enable_update (GConfClient *client,
|
||||
GladeXML *dialog)
|
||||
{
|
||||
gboolean is_enabled = gconf_client_get_bool (client, ACCESSIBILITY_KEY, NULL);
|
||||
|
||||
|
@ -163,6 +172,10 @@ setup_dialog (GladeXML *dialog)
|
|||
"clicked",
|
||||
G_CALLBACK (cb_keyboard_preferences), NULL);
|
||||
|
||||
g_signal_connect (G_OBJECT (WID("mouse_button")),
|
||||
"clicked",
|
||||
G_CALLBACK (cb_mouse_preferences), NULL);
|
||||
|
||||
g_signal_connect (G_OBJECT (WID("login_button")),
|
||||
"clicked",
|
||||
G_CALLBACK (cb_login_preferences), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue