KHelpCenter/help-kioslave problem

Waldo Bastian bastian at kde.org
Fri Oct 29 16:16:17 BST 2004


KHTML bug, attached patch fixes.

If the original URL doesn't have a #reference then khtml forgets to check if 
the redirected-to URL has a #reference.

Cheers,
Waldo

On Friday 29 October 2004 15:17, cies wrote:
> little help needed:
>
> i want to use the kapp->invokeHelp("<docbook-id>", "", "");
> to display help on a specific topic. To demonstate my problem i use a
> specific help item of kate, since i figured most of us have got that
> installed.
>
> Just putting it like i show above doesnt work. The page where the
> <docbook-id> is on is shown, but not scrolled to the location of the
> id anchor (it looks like the "#anchor" part of the URL was not
> understood).
>
> in kdelibs/kdecore/kapplication.cpp:invokeHelp i read:
> url = QString("help:/%1?anchor=%2").arg(appname).arg(anchor);
> and
> DCOPRef( "khelpcenter", "KHelpCenterIface" ).send( "openUrl", url,
> startup_id );
>
> When i use konq to go
> "help:/kate?anchor=kate-part-selection-persistent" (which is the
> proper way to go there iirc) i get seemingly transferred to
> "help:/kate/index.html#kate-part-selection-persistent" but not to the
> anchor on that page -- it stays on the top of that page. Like i just
> described it stayes on top of the page and doesnt scroll to the
> anchor.
>
> When i enter the location bar again i go to the anchor.
>
> yet this works wel if i go straight to (in konq):
> help:/kate/index.html#kate-part-selection-persistent
>
> or if i use kdcop to set
> "help:/kate/index.html#kate-part-selection-persistent" in
> KHelpCenterIface-OpenUrl, than all works fine...
>
> if i use kdcop to set "help:/kate?anchor=kate-part-selection-persistent" in
> KHelpCenterIface-OpenUrl, i again get stuck on top of the screen
>
> and it somehow doesnt work from the command line:
> dcop khelpcenter KHelpCenterIface openUrl
> "help:/kate/index.html#kate-part-selection-persistent", ""
> but this is not important to me :)
>
>
> Im tryered of this... I cant fix it.
>
> Thanks for reading,
> _cies.

-- 
bastian at kde.org   |   SUSE LINUX 9.2: Order now!   |   bastian at suse.com
  http://www.suse.de/us/private/products/suse_linux/preview/index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml_anchor_redir.patch
Type: text/x-diff
Size: 1568 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041029/c8ba6b73/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041029/c8ba6b73/attachment.sig>


More information about the kde-core-devel mailing list