add help.
2002-05-08 Jody Goldberg <jody@gnome.org> * gnome-network-preferences.glade : add help. * gnome-network-preferences.c (cb_dialog_response) : fix help.
This commit is contained in:
parent
3a0f926fc8
commit
944fbc6217
3 changed files with 33 additions and 10 deletions
6
capplets/network/ChangeLog
Normal file
6
capplets/network/ChangeLog
Normal file
|
@ -0,0 +1,6 @@
|
|||
2002-05-08 Jody Goldberg <jody@gnome.org>
|
||||
|
||||
* gnome-network-preferences.glade : add help.
|
||||
|
||||
* gnome-network-preferences.c (cb_dialog_response) : fix help.
|
||||
|
|
@ -40,17 +40,22 @@
|
|||
#define AUTH_PASSWD_KEY "/system/http_proxy/authentication_password"
|
||||
|
||||
static void
|
||||
dialog_response (GtkWidget *widget,
|
||||
int response_id)
|
||||
cb_dialog_response (GtkDialog *dialog, gint response_id)
|
||||
{
|
||||
switch (response_id)
|
||||
{
|
||||
case GTK_RESPONSE_CLOSE:
|
||||
case GTK_RESPONSE_DELETE_EVENT:
|
||||
default:
|
||||
if (response_id == GTK_RESPONSE_HELP) {
|
||||
GError *error = NULL;
|
||||
|
||||
/* TODO : get this written */
|
||||
gnome_help_display_desktop (NULL,
|
||||
"control-center-manual",
|
||||
"config-network.xml",
|
||||
"CONFIGURATION", &error);
|
||||
if (error) {
|
||||
g_warning ("help error: %s\n", error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
} else
|
||||
gtk_main_quit ();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -82,7 +87,7 @@ setup_dialog (GladeXML *dialog)
|
|||
gtk_entry_set_invisible_char (GTK_ENTRY (WID ("passwd_entry")), '*');
|
||||
|
||||
g_signal_connect (WID ("network_dialog"), "response",
|
||||
G_CALLBACK (dialog_response), NULL);
|
||||
G_CALLBACK (cb_dialog_response), NULL);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -29,6 +29,18 @@
|
|||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
<property name="spacing">10</property>
|
||||
|
||||
<child>
|
||||
<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="button3">
|
||||
<property name="visible">True</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue