[gnome-games] libgames-support: Better error message when showing help fails
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] libgames-support: Better error message when showing help fails
- Date: Thu, 9 Jul 2009 23:10:50 +0000 (UTC)
commit 0213cc676b094972c8db9374591ab9fcc1a9e1b1
Author: Christian Persch <chpe gnome org>
Date: Mon Jun 29 18:15:37 2009 +0200
libgames-support: Better error message when showing help fails
libgames-support/games-help.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libgames-support/games-help.c b/libgames-support/games-help.c
index e6de0b1..ae273db 100644
--- a/libgames-support/games-help.c
+++ b/libgames-support/games-help.c
@@ -128,6 +128,8 @@ games_help_display (GtkWidget *window,
screen = gtk_widget_get_screen (GTK_WIDGET (window));
+ /* FIXME: do we need to use g_uri_escape_string for doc_module and section? */
+
#if defined(WITH_HELP_METHOD_GHELP)
if (section != NULL) {
help_uri = g_strdup_printf ("ghelp:%s?%s", doc_module, section);
@@ -198,7 +200,8 @@ err:
dialog = gtk_message_dialog_new (GTK_WINDOW (window),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
- "%s", _("Unable to open help file"));
+ _("Could not show help for â??%sâ??"),
+ section ? section : g_get_application_name ());
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
"%s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]