add a help button. ditto.

2002-05-09  Jody Goldberg <jody@gnome.org>

	* gnome-ui-properties.glade : add a help button.
	* gnome-ui-properties.c (dialog_button_clicked_cb) : ditto.
This commit is contained in:
Jody Goldberg 2002-05-09 18:25:46 +00:00 committed by Jody Goldberg
parent 6eed1b852a
commit 5000af2e58
3 changed files with 31 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2002-05-09 Jody Goldberg <jody@gnome.org>
* gnome-ui-properties.glade : add a help button.
* gnome-ui-properties.c (dialog_button_clicked_cb) : ditto.
2002-05-06 jacob berkman <jacob@ximian.com>
* ui-properties.glade.h: remove unused file

View file

@ -77,14 +77,20 @@ toolbar_to_widget (GConfPropertyEditor *peditor, GConfValue *value)
static void
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
{
switch (response_id)
{
case RESPONSE_CLOSE:
case GTK_RESPONSE_DELETE_EVENT:
default:
gtk_main_quit ();
break;
}
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
"config-ui-properties.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
gtk_main_quit ();
}
static GladeXML *

View file

@ -27,7 +27,18 @@
<property name="spacing">10</property>
<child>
<widget class="GtkButton" id="button12">
<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="can_default">True</property>
<property name="can_focus">True</property>