[Xfce4-commits] <xfce4-panel:devel> Avoid ending with a # in the help uri.

Nick Schermer noreply at xfce.org
Wed Feb 24 13:04:01 CET 2010


Updating branch refs/heads/devel
         to 308d269b73be0a1e028d3e2615aaf79b27099abc (commit)
       from 983aa845a1b949b80b2804df88fe2196953be542 (commit)

commit 308d269b73be0a1e028d3e2615aaf79b27099abc
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Feb 23 21:23:43 2010 +0100

    Avoid ending with a # in the help uri.

 common/panel-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/panel-utils.c b/common/panel-utils.c
index 6c95805..9e4f883 100644
--- a/common/panel-utils.c
+++ b/common/panel-utils.c
@@ -151,7 +151,7 @@ panel_utils_show_help (GtkWindow   *parent,
     }
 
   if (G_LIKELY (exists))
-    uri = g_strconcat ("file://", filename, "#", offset, NULL);
+    uri = g_strconcat ("file://", filename, offset != NULL ? "#" : NULL, offset, NULL);
   else if (xfce_dialog_confirm (parent, "web-browser", _("_Read Online"),
                _("You can read the user manual online. This manual may however "
                  "not exactly match your panel version."),



More information about the Xfce4-commits mailing list