Add typing-break properties, #118323
Thu Jul 31 17:42:13 2003 Jonathan Blandford <jrb@redhat.com> * gnome-keyboard-properties.c (main): Add typing-break properties, #118323
This commit is contained in:
parent
aa54b2de82
commit
0e60a77a53
3 changed files with 16 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Jul 31 17:42:13 2003 Jonathan Blandford <jrb@redhat.com>
|
||||||
|
|
||||||
|
* gnome-keyboard-properties.c (main): Add typing-break properties,
|
||||||
|
#118323
|
||||||
|
|
||||||
2003-07-17 Dennis Cranston <dennis_cranston at yahoo com>
|
2003-07-17 Dennis Cranston <dennis_cranston at yahoo com>
|
||||||
|
|
||||||
* gnome-keyboard-properties.glade,
|
* gnome-keyboard-properties.glade,
|
||||||
|
|
|
@ -209,8 +209,10 @@ main (int argc, char **argv)
|
||||||
GConfChangeSet *changeset;
|
GConfChangeSet *changeset;
|
||||||
GladeXML *dialog;
|
GladeXML *dialog;
|
||||||
|
|
||||||
static gboolean apply_only;
|
static gboolean apply_only = FALSE;
|
||||||
static gboolean get_legacy;
|
static gboolean get_legacy = FALSE;
|
||||||
|
static gboolean switch_to_typing_break_page = FALSE;
|
||||||
|
|
||||||
static struct poptOption cap_options[] = {
|
static struct poptOption cap_options[] = {
|
||||||
{ "apply", '\0', POPT_ARG_NONE, &apply_only, 0,
|
{ "apply", '\0', POPT_ARG_NONE, &apply_only, 0,
|
||||||
N_("Just apply settings and quit (compatibility only; now handled by daemon)"), NULL },
|
N_("Just apply settings and quit (compatibility only; now handled by daemon)"), NULL },
|
||||||
|
@ -218,7 +220,8 @@ main (int argc, char **argv)
|
||||||
N_("Just apply settings and quit (compatibility only; now handled by daemon)"), NULL },
|
N_("Just apply settings and quit (compatibility only; now handled by daemon)"), NULL },
|
||||||
{ "get-legacy", '\0', POPT_ARG_NONE, &get_legacy, 0,
|
{ "get-legacy", '\0', POPT_ARG_NONE, &get_legacy, 0,
|
||||||
N_("Retrieve and store legacy settings"), NULL },
|
N_("Retrieve and store legacy settings"), NULL },
|
||||||
// { "set_page",
|
{ "typing-break", '\0', POPT_ARG_NONE, &switch_to_typing_break_page, 0,
|
||||||
|
N_("Start the page with the typing break settings showing"), NULL },
|
||||||
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
|
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -243,8 +246,11 @@ main (int argc, char **argv)
|
||||||
changeset = NULL;
|
changeset = NULL;
|
||||||
dialog = create_dialog ();
|
dialog = create_dialog ();
|
||||||
setup_dialog (dialog, changeset);
|
setup_dialog (dialog, changeset);
|
||||||
|
if (switch_to_typing_break_page) {
|
||||||
|
gtk_notebook_set_current_page (GTK_NOTEBOOK (WID ("keyboard_notebook")), 1);
|
||||||
|
}
|
||||||
capplet_set_icon (WID ("keyboard_dialog"),
|
capplet_set_icon (WID ("keyboard_dialog"),
|
||||||
"keyboard-capplet.png");
|
"keyboard-capplet.png");
|
||||||
gtk_widget_show (WID ("keyboard_dialog"));
|
gtk_widget_show (WID ("keyboard_dialog"));
|
||||||
gtk_main ();
|
gtk_main ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkNotebook" id="notebook1">
|
<widget class="GtkNotebook" id="keyboard_notebook">
|
||||||
<property name="border_width">5</property>
|
<property name="border_width">5</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue