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>
|
2002-05-09 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* gnome-mouse-properties.glade : long forgotten atk patch from Dave.
|
* gnome-mouse-properties.glade : long forgotten atk patch from Dave.
|
||||||
|
|
|
@ -669,12 +669,20 @@ create_dialog (void)
|
||||||
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) {
|
||||||
case GTK_RESPONSE_CLOSE:
|
GError *error = NULL;
|
||||||
default:
|
|
||||||
|
/* 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 ();
|
gtk_main_quit ();
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -716,6 +724,7 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
dialog_win = gtk_dialog_new_with_buttons
|
dialog_win = gtk_dialog_new_with_buttons
|
||||||
(_("Mouse Properties"), NULL, 0,
|
(_("Mouse Properties"), NULL, 0,
|
||||||
|
GTK_STOCK_HELP, GTK_RESPONSE_HELP,
|
||||||
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
|
@ -27,26 +27,26 @@
|
||||||
<property name="spacing">10</property>
|
<property name="spacing">10</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkButton" id="help_button">
|
<widget class="GtkButton" id="helpbutton1">
|
||||||
<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>
|
||||||
<property name="label">gtk-help</property>
|
<property name="label">gtk-help</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="response_id">0</property>
|
<property name="response_id">-11</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkButton" id="close_button">
|
<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>
|
||||||
<property name="label">gtk-close</property>
|
<property name="label">gtk-close</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="response_id">0</property>
|
<property name="response_id">2</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue