If help isn't found, display an error message.

If help isn't found, display an error message.
This commit is contained in:
Elliot Lee 1999-09-02 22:57:01 +00:00
parent f98afc603f
commit 764440033f
5 changed files with 32 additions and 0 deletions

View file

@ -1,3 +1,7 @@
1999-09-02 Elliot Lee <sopwith@redhat.com>
* capplets/*/*.c, control-center/{callbacks.c,capplet-widget.c}:
If help isn't found, display an error message.
1999-09-01 Elliot Lee <sopwith@redhat.com>
* capplets/gnome-edit-properties/gnome-edit-properties.c:
When reverting, store the executable name, not the viewed name.

View file

@ -61,11 +61,13 @@ cancel_callback ()
write_initial_keys ();
write_initial_mime ();
}
static void
help_callback ()
{
/* Sigh... empty as always */
}
static void
init_mime_capplet ()
{
@ -106,8 +108,10 @@ init_mime_capplet ()
GTK_SIGNAL_FUNC(hide_edit_window), NULL);
gtk_signal_connect(GTK_OBJECT(capplet), "page_shown",
GTK_SIGNAL_FUNC(show_edit_window), NULL);
#if 0
gtk_signal_connect(GTK_OBJECT(capplet), "help",
GTK_SIGNAL_FUNC(help_callback), NULL);
#endif
}
int

View file

@ -355,6 +355,14 @@ click_help(GtkWidget *widget, gpointer data)
if (tmp) {
gnome_help_goto(0, tmp);
g_free(tmp);
} else {
GtkWidget *mbox;
mbox = gnome_message_box_new(_("No help is available/installed for these settings. Please make sure you\nhave the GNOME User's Guide installed on your system."),
GNOME_MESSAGE_BOX_ERROR,
_("Close"), NULL);
gtk_widget_show(mbox);
}
}

View file

@ -355,6 +355,14 @@ click_help(GtkWidget *widget, gpointer data)
if (tmp) {
gnome_help_goto(0, tmp);
g_free(tmp);
} else {
GtkWidget *mbox;
mbox = gnome_message_box_new(_("No help is available/installed for these settings. Please make sure you\nhave the GNOME User's Guide installed on your system."),
GNOME_MESSAGE_BOX_ERROR,
_("Close"), NULL);
gtk_widget_show(mbox);
}
}

View file

@ -599,6 +599,14 @@ help_callback (void)
if (tmp) {
gnome_help_goto(0, tmp);
g_free(tmp);
} else {
GtkWidget *mbox;
mbox = gnome_message_box_new(_("No help is available/installed for these settings. Please make sure you\nhave the GNOME User's Guide installed on your system."),
GNOME_MESSAGE_BOX_ERROR,
_("Close"), NULL);
gtk_widget_show(mbox);
}
}