enable help. (main) : ditto.
2002-05-09 Jody Goldberg <jody@gnome.org> * gnome-mouse-properties.c (dialog_button_clicked_cb) : enable help. (main) : ditto.
This commit is contained in:
parent
263bc20dd5
commit
6eed1b852a
3 changed files with 23 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-09 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* gnome-mouse-properties.c (dialog_button_clicked_cb) : enable help.
|
||||
(main) : ditto.
|
||||
|
||||
2002-05-09 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* gnome-mouse-properties.glade : long forgotten atk patch from Dave.
|
||||
|
|
|
@ -669,12 +669,20 @@ create_dialog (void)
|
|||
static void
|
||||
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
|
||||
{
|
||||
switch (response_id) {
|
||||
case GTK_RESPONSE_CLOSE:
|
||||
default:
|
||||
if (response_id == GTK_RESPONSE_HELP) {
|
||||
GError *error = NULL;
|
||||
|
||||
/* TODO : get this written */
|
||||
gnome_help_display_desktop (NULL,
|
||||
"control-center-manual",
|
||||
"config-mouse.xml",
|
||||
"CONFIGURATION", &error);
|
||||
if (error) {
|
||||
g_warning ("help error: %s\n", error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
} else
|
||||
gtk_main_quit ();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -716,6 +724,7 @@ main (int argc, char **argv)
|
|||
|
||||
dialog_win = gtk_dialog_new_with_buttons
|
||||
(_("Mouse Properties"), NULL, 0,
|
||||
GTK_STOCK_HELP, GTK_RESPONSE_HELP,
|
||||
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
||||
NULL);
|
||||
|
||||
|
|
|
@ -27,26 +27,26 @@
|
|||
<property name="spacing">10</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="help_button">
|
||||
<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">0</property>
|
||||
<property name="response_id">-11</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="close_button">
|
||||
<widget class="GtkButton" id="closebutton1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label">gtk-close</property>
|
||||
<property name="use_stock">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">0</property>
|
||||
<property name="response_id">2</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue