cleanups.
Thu Apr 18 13:59:12 2002 Jonathan Blandford <jrb@gnome.org> * gnome-keyboard-properties.glade: cleanups. * gnome-keyboard-properties.c: remove accessibility pane and add a button.
This commit is contained in:
parent
625fa675ed
commit
68996b9000
3 changed files with 1091 additions and 1025 deletions
|
@ -1,3 +1,10 @@
|
|||
Thu Apr 18 13:59:12 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* gnome-keyboard-properties.glade: cleanups.
|
||||
|
||||
* gnome-keyboard-properties.c: remove accessibility pane and add a
|
||||
button.
|
||||
|
||||
Wed Apr 10 18:06:25 2002 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* keyboard.desktop.in (Exec): s/gnome2/gnome
|
||||
|
|
|
@ -233,6 +233,13 @@ dialog_response (GtkWidget *widget,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
accessibility_button_clicked (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
g_spawn_command_line_async ("gnome-accessibility-keyboard-properties", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
setup_dialog (GladeXML *dialog,
|
||||
GConfChangeSet *changeset)
|
||||
|
@ -300,6 +307,8 @@ setup_dialog (GladeXML *dialog,
|
|||
NULL);
|
||||
g_signal_connect (G_OBJECT (WID ("bell_custom_radio")), "mnemonic_activate", (GCallback) mnemonic_activate, WID ("bell_custom_entry"));
|
||||
g_signal_connect (G_OBJECT (WID ("keyboard_dialog")), "response", (GCallback) dialog_response, changeset);
|
||||
|
||||
g_signal_connect (G_OBJECT (WID ("accessibility_button")), "clicked", (GCallback) accessibility_button_clicked, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -321,6 +330,7 @@ get_legacy_settings (void)
|
|||
COPY_FROM_LEGACY (int, "/gnome/desktop/peripherals/keyboard/bell_duration", "/Desktop/Bell/duration=100");
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
setup_accessibility (GladeXML *dialog, GConfChangeSet *changeset)
|
||||
{
|
||||
|
@ -329,6 +339,7 @@ setup_accessibility (GladeXML *dialog, GConfChangeSet *changeset)
|
|||
GtkWidget *page = setup_accessX_dialog (changeset, FALSE);
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK (notebook), page, label);
|
||||
}
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
|
@ -370,8 +381,9 @@ main (int argc, char **argv)
|
|||
changeset = NULL;
|
||||
dialog = create_dialog ();
|
||||
setup_dialog (dialog, changeset);
|
||||
#if 0
|
||||
setup_accessibility (dialog, changeset);
|
||||
|
||||
#endif
|
||||
gtk_widget_show_all (WID ("keyboard_dialog"));
|
||||
gtk_main ();
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue