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

List:       kfm-devel
Subject:    Re: (not) Adding a statusbar widget
From:       Koos Vriezen <koos.vriezen () xs4all ! nl>
Date:       2005-06-03 12:24:26
Message-ID: 20050603122426.GB71946 () xs4all ! nl
[Download RAW message or body]

On Fri, Jun 03, 2005 at 01:54:21PM +0200, David Faure wrote:
> On Friday 03 June 2005 13:30, Koos Vriezen wrote:
> > On Thu, Jun 02, 2005 at 10:18:15PM +0200, David Faure wrote:
> > > On Thursday 02 June 2005 21:50, Koos Vriezen wrote:
> > > > On Thu, Jun 02, 2005 at 08:59:49PM +0200, Koos Vriezen wrote:
> > > > > Anyhow, it works :-).  Commit it?
> > > > 
> > > > Well almost everything but the kjas part :-(. Context idea sucks I'm
> > > > afraid. So updated for each applet an icon ..
> > > 
> > > The khtml_part patch looks fine - thanks for that fix.
> > > Don't know the javaapplet code, but the statusbar-extension usage looks ok to me.
> > 
> > Hmm, what if I move the code added outside this if/else clause?
> > 
> > Index: khtml_part.cpp
> > ===================================================================
> > --- khtml_part.cpp      (revision 421260)
> > +++ khtml_part.cpp      (working copy)
> > @@ -4393,6 +4403,9 @@
> >      if (::qt_cast<KHTMLPart*>(part)) {
> >        static_cast<KHTMLPart*>(part)->d->m_frame = child;
> >      } else if (child->m_frame) {
> > +      KParts::StatusBarExtension *sb =
> > KParts::StatusBarExtension::childObject(part);
> > +      if (sb)
> > +          sb->setStatusBar( d->m_statusBarExtension->statusBar() );
> 
> That's the old patch, not the new patch you suggest, right?

Yes, this one went in yesterday.

> > It makes applets in frames work, but I can't fully oversee what will
> > happen with the wallet/ssl/UA icons. Ie. will one of these show at all
> > if only one of the framesets has that particular feature?
> Sure, why would anything else happen? There is no "merging" of statusbar items,
> each code that asks for a statusbar item, gets one.
> 
> If you mean calling setStatusBar in more cases than before (i.e. also for child HTML frames)
> this sounds completely correct to me, since all parts have to know about the 
> konq-provided statusbar, instead of asking KMainWindow to create one for them.

Yes, that's what I thought too. However, it seems to work already for
ssl/UA/wallet w/o this change.
Anyhow, I'll change it then.

OT, anyone for a nice java icon at 16x16 (java_source is not
recognizable at this size)

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

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