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"
|
#define AUTH_PASSWD_KEY "/system/http_proxy/authentication_password"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dialog_response (GtkWidget *widget,
|
cb_dialog_response (GtkDialog *dialog, gint response_id)
|
||||||
int response_id)
|
|
||||||
{
|
{
|
||||||
switch (response_id)
|
if (response_id == GTK_RESPONSE_HELP) {
|
||||||
{
|
GError *error = NULL;
|
||||||
case GTK_RESPONSE_CLOSE:
|
|
||||||
case GTK_RESPONSE_DELETE_EVENT:
|
/* TODO : get this written */
|
||||||
default:
|
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 ();
|
gtk_main_quit ();
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -82,7 +87,7 @@ setup_dialog (GladeXML *dialog)
|
||||||
gtk_entry_set_invisible_char (GTK_ENTRY (WID ("passwd_entry")), '*');
|
gtk_entry_set_invisible_char (GTK_ENTRY (WID ("passwd_entry")), '*');
|
||||||
|
|
||||||
g_signal_connect (WID ("network_dialog"), "response",
|
g_signal_connect (WID ("network_dialog"), "response",
|
||||||
G_CALLBACK (dialog_response), NULL);
|
G_CALLBACK (cb_dialog_response), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -29,6 +29,18 @@
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
<property name="spacing">10</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>
|
<child>
|
||||||
<widget class="GtkButton" id="button3">
|
<widget class="GtkButton" id="button3">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue