support help. add help.
2002-05-09 Jody Goldberg <jody@gnome.org> * gnome-keyboard-properties.c (dialog_response) : support help. * gnome-keyboard-properties.glade : add help.
This commit is contained in:
parent
c25f749979
commit
263bc20dd5
3 changed files with 31 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-05-09 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
|
* gnome-keyboard-properties.c (dialog_response) : support help.
|
||||||
|
* gnome-keyboard-properties.glade : add help.
|
||||||
|
|
||||||
2002-05-09 Jody Goldberg <jody@gnome.org>
|
2002-05-09 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* gnome-keyboard-properties.glade : long forgotten atk patch from Dave.
|
* gnome-keyboard-properties.glade : long forgotten atk patch from Dave.
|
||||||
|
|
|
@ -223,14 +223,20 @@ dialog_response (GtkWidget *widget,
|
||||||
gint response_id,
|
gint response_id,
|
||||||
GConfChangeSet *changeset)
|
GConfChangeSet *changeset)
|
||||||
{
|
{
|
||||||
switch (response_id)
|
if (response_id == GTK_RESPONSE_HELP) {
|
||||||
{
|
GError *error = NULL;
|
||||||
case RESPONSE_CLOSE:
|
|
||||||
case GTK_RESPONSE_DELETE_EVENT:
|
/* TODO : get this written */
|
||||||
default:
|
gnome_help_display_desktop (NULL,
|
||||||
|
"control-center-manual",
|
||||||
|
"config-keyboard.xml",
|
||||||
|
"CONFIGURATION", &error);
|
||||||
|
if (error) {
|
||||||
|
g_warning ("help error: %s\n", error->message);
|
||||||
|
g_error_free (error);
|
||||||
|
}
|
||||||
|
} else
|
||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -28,7 +28,19 @@
|
||||||
<property name="spacing">10</property>
|
<property name="spacing">10</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkButton" id="button3">
|
<widget class="GtkButton" id="helpbutton1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_default">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="label">gtk-help</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
|
<property name="response_id">-11</property>
|
||||||
|
</widget>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<child>
|
||||||
|
<widget class="GtkButton" id="closebutton1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_default">True</property>
|
<property name="can_default">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