Re: BonoboControl without BonoboWindow in GNOME2 - any better than in GNOME1?
- From: Michael Meeks <michael ximian com>
- To: "Sergey V. Oudaltsov" <sergey oudaltsov clients ie>
- Cc: bonobo <gnome-components-list gnome org>
- Subject: Re: BonoboControl without BonoboWindow in GNOME2 - any better than in GNOME1?
- Date: 12 Mar 2003 14:42:26 +0000
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.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]