Re: BonoboControl without BonoboWindow in GNOME2 - any better than in GNOME1?

Michael Meeks <[email protected]>
Newsgroups gmane.comp.gnome.components
Organization Ximian.
Message-ID <[email protected]>
Hi Gustavo,

On Mon, 2003-03-10 at 10:57, Sergey V. Oudaltsov wrote:
> The idea is xkb layout preview panel in the xkb capplet. It is not
> BonoboWindow, it is usual dialog (Gtk). I have a tab "Preview" in this
> dialog and want to see the following things:

	Right - sounds interesting.

> 1. Preview itself. Postscript (output of xkbprint) rendered by ggv
> component (BonoboControl).

	Ok.

> 2. Some set of widgets (buttons) to control the control (zoom,
> next/prev page, rotation).

	Hmm; I see - so; that's harder to do - there is no way to do that with
the UI handler I'm afraid - currently; which sucks it's true - but the
UI handler is tied to the Dock / Toolbar for tool buttons currently.

> I don't know how to ask BonoboControl to add toolbar to my dialog -
> that is why I wanted to get the list of verbs and build all the
> buttons myself. If it does not make any sense - I would be happy to
> consider any other solution.

	I think you'll have to consider another solution. IIWY since this is
such a specific case - you _could_ merge the verbs into the Control's
popup UIContainer [I assume you have the popup working fine], and then
with some hard-coded action do:

	Bonobo_UIContainer_execVerb (popup_container, "ZoomIn", &ev);

	etc. which may well help. Unfortunately, the last inch of this is
missing - which is the implementation of bonobo_ui_engine_exec_verb
which  currently just emits a g_warning - but that should be trivial to
fix (ditto the ui_event), feel free to send/commit a patch to do that.

	Hope that helps; of course - if you can think of some way whereby we
can expose _just a little_ more of BonoboUIEngine / BonoboUISync etc.
such that you can do what you want - even better :-)

	Regards,

		Michael.

-- 
 [email protected]  <><, Pseudo Engineer, itinerant idiot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.