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:
parent
6eed1b852a
commit
5000af2e58
3 changed files with 31 additions and 9 deletions
|
@ -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>
|
2002-05-06 jacob berkman <jacob@ximian.com>
|
||||||
|
|
||||||
* ui-properties.glade.h: remove unused file
|
* ui-properties.glade.h: remove unused file
|
||||||
|
|
|
@ -77,14 +77,20 @@ toolbar_to_widget (GConfPropertyEditor *peditor, GConfValue *value)
|
||||||
static void
|
static void
|
||||||
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
|
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, 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,
|
||||||
gtk_main_quit ();
|
"control-center-manual",
|
||||||
break;
|
"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 *
|
static GladeXML *
|
||||||
|
|
|
@ -27,7 +27,18 @@
|
||||||
<property name="spacing">10</property>
|
<property name="spacing">10</property>
|
||||||
|
|
||||||
<child>
|
<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="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