[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: slight change to "dropping links" on kdesktop
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-05-30 10:05:03
[Download RAW message or body]

On Tue, May 30, 2000 at 11:38:46AM +0200, Simon Hausmann wrote:
> 
> 
> On Tue, 30 May 2000, David Faure wrote:
> 
> > On Mon, May 29, 2000 at 10:41:59PM -0400, pbrown@redhat.com wrote:
> > > right now, when you drop a link from netscape or konqi on the desktop,
> > > and select "link," you end up with a desktop file for that URL with a name
> > > set to the URL.  What would be much cooler is if the name was set to the
> > > actual title of the HTML page.
> > > 
> > > How bad would this be to implement?
> > 
> > Not too hard I think. But this requires changing the signature of
> > bool KIO::link( const KURL::List &srcUrls, const KURL & destDir )
> > so that you can specify the name of the destination link, since the
> > default implementation is
> > // The destination URL is the destination dir + the filename
> > 
> > A bit hard to do in the multiple-source-files case...
> 
> I really like that idea. But I wonder how this could be implemented from
> the "title-of-the-HTML-page" side ? :) I mean: If you drag an link to a
> html document, then you know the source url. But in order to get the
> title, you have to read data from it and parse the html (at least the
> first few bytes) .

Oops, you're right - we also need to figure out the title
(I wrongly assumed we knew it at that point, but we don't).
Wow. It's completely orthogonal to the design we have
(i.e. we need to combine a special kio_http call for
"get only the beginning of the data until we got enough
for figure the title" and some code from khtml for figuring
out the title).

Given the low ratio added-value / complexity, I'm not very much in
favour of this...

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic