[gnome-games] Don't append ? on ghelp URI with NULL section
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] Don't append ? on ghelp URI with NULL section
- Date: Fri, 1 May 2009 10:12:50 -0400 (EDT)
commit a42f42b54af61046ab39c1376730c5c88b53ce2f
Author: Christian Persch <chpe gnome org>
Date: Fri May 1 15:21:04 2009 +0200
Don't append ? on ghelp URI with NULL section
---
libgames-support/games-help.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/libgames-support/games-help.c b/libgames-support/games-help.c
index 368f5f0..838b15d 100644
--- a/libgames-support/games-help.c
+++ b/libgames-support/games-help.c
@@ -30,7 +30,7 @@
*
* @window: toplevel window
* @application: name used for the help file
- * @section: section to open. NULL if not used.
+ * @section: section to open, or %NULL
*
*/
void
@@ -45,7 +45,11 @@ games_help_display (GtkWidget *window,
screen = gtk_widget_get_screen (GTK_WIDGET (window));
- help_string = g_strconcat ("ghelp:", app_name, "?", section, NULL);
+ if (section) {
+ help_string = g_strconcat ("ghelp:", app_name, "?", section, NULL);
+ } else {
+ help_string = g_strconcat ("ghelp:", app_name, NULL);
+ }
gtk_show_uri (screen, help_string, gtk_get_current_event_time (), &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]