head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.8 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2010.06.15.21.24.14; author drochner; state dead; branches; next 1.1; 1.1 date 2010.02.13.12.26.15; author tnn; state Exp; branches; next ; desc @@ 1.2 log @update to 2.30.1 This switches to the gnome-2.30 release branch @ text @$NetBSD: patch-ad,v 1.1 2010/02/13 12:26:15 tnn Exp $ http://git.gnome.org/browse/yelp/commit/?id=a5588114ed94d00ca64913aa5b248e09a5e13edc --- src/yelp-window.c.orig 2009-11-19 17:09:56.000000000 +0000 +++ src/yelp-window.c @@@@ -1854,14 +1854,21 @@@@ html_uri_selected_cb (YelpHtml *html, gboolean handled, gpointer user_data) { + gchar *new_uri = uri; YelpWindow *window = YELP_WINDOW (user_data); debug_print (DB_FUNCTION, "entering\n"); debug_print (DB_ARG, " uri = \"%s\"\n", uri); + if (g_str_has_prefix (uri, "xref:")) + new_uri = g_strconcat (window->priv->base_uri, "#", uri + 5, NULL); + if (!handled) { - yelp_window_load (window, uri); + yelp_window_load (window, new_uri); } + + if (new_uri != uri) + g_free (new_uri); } static gboolean @ 1.1 log @Merge GNOME git commit a5588114ed94d00ca64913aa5b248e09a5e13edc. Fixes compatibility issues with xulrunner-1.9.2. @ text @d1 1 a1 1 $NetBSD$ @