If help isn't found, display an error message.
If help isn't found, display an error message.
This commit is contained in:
parent
f98afc603f
commit
764440033f
5 changed files with 32 additions and 0 deletions
|
@ -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>
|
1999-09-01 Elliot Lee <sopwith@redhat.com>
|
||||||
* capplets/gnome-edit-properties/gnome-edit-properties.c:
|
* capplets/gnome-edit-properties/gnome-edit-properties.c:
|
||||||
When reverting, store the executable name, not the viewed name.
|
When reverting, store the executable name, not the viewed name.
|
||||||
|
|
|
@ -61,11 +61,13 @@ cancel_callback ()
|
||||||
write_initial_keys ();
|
write_initial_keys ();
|
||||||
write_initial_mime ();
|
write_initial_mime ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
help_callback ()
|
help_callback ()
|
||||||
{
|
{
|
||||||
/* Sigh... empty as always */
|
/* Sigh... empty as always */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
init_mime_capplet ()
|
init_mime_capplet ()
|
||||||
{
|
{
|
||||||
|
@ -106,8 +108,10 @@ init_mime_capplet ()
|
||||||
GTK_SIGNAL_FUNC(hide_edit_window), NULL);
|
GTK_SIGNAL_FUNC(hide_edit_window), NULL);
|
||||||
gtk_signal_connect(GTK_OBJECT(capplet), "page_shown",
|
gtk_signal_connect(GTK_OBJECT(capplet), "page_shown",
|
||||||
GTK_SIGNAL_FUNC(show_edit_window), NULL);
|
GTK_SIGNAL_FUNC(show_edit_window), NULL);
|
||||||
|
#if 0
|
||||||
gtk_signal_connect(GTK_OBJECT(capplet), "help",
|
gtk_signal_connect(GTK_OBJECT(capplet), "help",
|
||||||
GTK_SIGNAL_FUNC(help_callback), NULL);
|
GTK_SIGNAL_FUNC(help_callback), NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -355,6 +355,14 @@ click_help(GtkWidget *widget, gpointer data)
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
gnome_help_goto(0, tmp);
|
gnome_help_goto(0, tmp);
|
||||||
g_free(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -355,6 +355,14 @@ click_help(GtkWidget *widget, gpointer data)
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
gnome_help_goto(0, tmp);
|
gnome_help_goto(0, tmp);
|
||||||
g_free(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -599,6 +599,14 @@ help_callback (void)
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
gnome_help_goto(0, tmp);
|
gnome_help_goto(0, tmp);
|
||||||
g_free(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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue