Re: bonoboui toolbar bits ...
Michael Meeks <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Organization | Ximian. |
| Message-ID | <[email protected]> |
Hi Ricardo, On Mon, 2002-11-04 at 19:43, Ricardo Fernández Pascual wrote: > Great. That will surely help us. We will have to reimplement some of our > "old" controls but this is great news. Thanks! Good; I'd sub-class the bonobo-ui-toolbar-[button-]item if I were you, that's prolly the best way then you can adapt to the style / want/label / orientation settings etc. > Context menus are my main problem with bonoboui. What is the api that > you propose? Will it be implemented? ;) Well - since you can do everything you need by simply whacking a control (now widget) in there - it seems there's not much more you need? in the worst case, it's as complicated as Gtk+. > Also note that for adding context menus for menus I have to use the > button_press event (and when porting to gtk2 I needed the event_after > signal too in order to make it behave correctly). I don't know how would > this fit in the API. Again - currently to do that, you have to insert a widget. > That would be enough for most things. I still havn't got to the DoFile_left|right|middle type thing yet - which sucks; if someone wants to hack up a patch I'm interested though. > > bonobo_ui_component_freeze > > ... umpteen operations ... > > bonobo_ui_component_thaw > > I think I'm not doing it. I'll look. The freeze / thaw will (should) give a fairly massive performance improvement ;-) > But my point is that having to build XML for building a menu is a pain, > even if it could be done efficiently. It's good for the apps interface > because you keep it in a separate file and it's clean. But building the > XML from C is messy. Sure; it sucks, there were helper methods to do it - but IMHO they rather sucked too so I axed them ;-) HTH, Michael. -- [email protected] <><, Pseudo Engineer, itinerant idiot ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf