Improve help handling.

Improve help handling.

2002-05-26  Jody Goldberg <jody@gnome.org>

	* capplet-util.c (capplet_help) : new utility.

2002-05-24  Jody Goldberg <jody@gnome.org>

	* mime-type-info.c (mime_category_info_load_all) : make this more paranoid.
	* mime-category-edit-dialog.c (update_subcategories) : Move this over
	  here.

2002-05-17  Jody Goldberg <jody@gnome.org>

	* mime-type-info.c (mime_category_info_using_custom_app) : add some
	  protection.
This commit is contained in:
Jody Goldberg 2002-05-27 02:54:19 +00:00 committed by Jody Goldberg
parent 49d1a5af36
commit bd493373d2
12 changed files with 56 additions and 81 deletions

View file

@ -1,3 +1,7 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* main.c (cb_dialog_response) : improve handling of help failures.
Sun May 26 11:38:48 2002 Jonathan Blandford <jrb@gnome.org>
* main.c (main): use APPID instead of argv[0]

View file

@ -30,19 +30,11 @@ create_dialog (void)
static void
cb_dialog_response (GtkDialog *dialog, gint response_id)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-font.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}

View file

@ -1,3 +1,8 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* gnome-mouse-properties.c (dialog_response_cb) : Improve handling of
help failures.
Sun May 26 11:31:34 2002 Jonathan Blandford <jrb@gnome.org>
* gnome-mouse-properties.c (main): use APPID instead of argv[0]

View file

@ -705,19 +705,11 @@ create_dialog (void)
static void
dialog_response_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-mouse.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}

View file

@ -1,3 +1,8 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* gnome-network-preferences.c (cb_dialog_response) : Improve handling
of help failures.
Sun May 26 11:45:26 2002 Jonathan Blandford <jrb@gnome.org>
* gnome-network-preferences.c (main): use APPID instead of argv[0]

View file

@ -42,19 +42,11 @@
static void
cb_dialog_response (GtkDialog *dialog, gint response_id)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-network.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}

View file

@ -1,3 +1,8 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* sound-properties-capplet.c (dialog_button_clicked_cb) : Improve
handling of help failures.
Sun May 26 11:32:09 2002 Jonathan Blandford <jrb@gnome.org>
* sound-properties-capplet.c (main): use APPID instead of argv[0]

View file

@ -122,18 +122,11 @@ get_legacy_settings (void)
static void
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-sound.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}

View file

@ -1,3 +1,9 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* theme-switcher.c (install_dialog_response) : improve handling of
help failures.
(cb_dialog_response) : ditto.
Sun May 26 11:34:31 2002 Jonathan Blandford <jrb@gnome.org>
* theme-switcher.c (main): use APPID instead of argv[0]

View file

@ -361,17 +361,9 @@ install_dialog_response (GtkWidget *widget, int response_id, gpointer data)
const gchar *raw;
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
capplet_help (GTK_WINDOW (widget),
"config-themes.xml",
"config-theme-add", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
"config-theme-add");
return;
}
@ -419,19 +411,11 @@ install_dialog_response (GtkWidget *widget, int response_id, gpointer data)
static void
cb_dialog_response (GtkDialog *dialog, gint response_id)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-themes.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}

View file

@ -1,3 +1,8 @@
2002-05-26 Jody Goldberg <jody@gnome.org>
* gnome-ui-properties.c (dialog_button_clicked_cb) : Improve handling
of help failures.
Sun May 26 11:37:08 2002 Jonathan Blandford <jrb@gnome.org>
* gnome-ui-properties.c (main): use APPID instead of argv[0]

View file

@ -76,19 +76,11 @@ toolbar_to_widget (GConfPropertyEditor *peditor, GConfValue *value)
static void
dialog_button_clicked_cb (GtkDialog *dialog, gint response_id, GConfChangeSet *changeset)
{
if (response_id == GTK_RESPONSE_HELP) {
GError *error = NULL;
/* TODO : get this written */
gnome_help_display_desktop (NULL,
"control-center-manual",
if (response_id == GTK_RESPONSE_HELP)
capplet_help (GTK_WINDOW (dialog),
"config-ui-properties.xml",
"CONFIGURATION", &error);
if (error) {
g_warning ("help error: %s\n", error->message);
g_error_free (error);
}
} else
"CONFIGURATION");
else
gtk_main_quit ();
}