Re: bonoboui toolbar bits ...
Ricardo Fernández Pascual <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <[email protected]> |
El jue, 31-10-2002 a las 13:09, Michael Meeks escribió:
> Hi Guys,
>
> What with the API freeze looming on the horizon, and the nastiness with
> themes and UI toolbar controls - I was hoping to add several controls to
> help you make your stuff look nice; so really - I suppose, I want to
> know what extra 'widget' types we need, and some idea of how we can
> describe them nicely in XML.
>
> eg. the history (back/forward) button, can be simply implemented (and
> shared with Nautilus) perhaps with something like:
>
> <menuitem name="GoBack" verb="" id="GotoLocation" type="history"
> max_items="20">
> <placeholder>
> <menuitem name="1" id="http://www.foo.com" _label="foo.com"/>
> ...
> </menuitem>
>
> Or somesuch ? what do you want from such a thing.
>
Looks good.
> Also; I see with the shortcuts, you have:
>
> <label / icon> '<<' [text entry]
>
> clearly that's not going to do too well as a control either; what
> requirements do you have for such things ? not being a galeon user I
> have no feel for what is needed here, but clearly it'd be nice to have
> that as a simpler built-in type that'll theme beautifully and be easier
> to code. Would a special 'control' item with a 'popout' [ is that what
> the '<<' thing is ? ] button and a label/icon be sufficient for your
> needs ?
I think that is working well enough using controls. And I need to use
controls anyway because I need context menus there.
Smartbookmarks (the shortcuts) are very specific to galeon and I don't
think that adding a special case in bonoboui for them makes sense (maybe
I'm wrong and this would be useful for more apps).
> Anything else notably missing ?
Several things that I miss when using libbonoboui are:
- context menus: I want to be able to add context menus for
menuitems and toolbar buttons. Using gtk+ this is very easy, but
using libbonoboui you have to use a control for each toolbar
item. And it can't be done for menuitems.
- speed: building the bookmarks menu using libbonoboui is a lot
slower than using gtk+. And I mean a lot[1]. I don't think that
this can be fixed :-( Maybe I can optimize the code that builds
the menus in galeon, making it less maintainable...
- being able to know what button the user uses to click a
menuitem/toolbaritem. In galeon 1, we opened things in new
windows/tabs depending of the button used. It added consistency
to the interface and was a very useful feature, IMO. I
understand that this may not fit very well in the bonoboui
design and philosophy... maybe being able to add different verbs
depending of the button?
- In general, creating dynamic menus (like bookmarks,
history...) using libbonoboui is a pain. Building XML on the fly
to immediately parse it looks wrong to me. I would love to be
able to mix bonoboui menus (for general menus of the
application) and standard gtk+ menus (for dynamic things). That
would solve all my problems with libbonoboui (at least all the
important ones ;-) ).
> Thoughts / input (quick :-)
>
Thank you for your interest!
Ricardo.
[1] Add an alias for you main folder to your toolbar and compare the
speed of gtk+ menus (used for popups from the toolbar) and bonoboui
menus (used for the menu), using a big/medium sized bookmark collection.
And btw, the code for the gtk+ version is quite simpler and cleaner. A
significant part of the time spent building galeon windows is spent
building the bookmark menu (and only the first level is built unless the
user really tries to use it).
--
Ricardo Fernández Pascual
[email protected]
Murcia. España.
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en