Re: more questions about bonobo_widget

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

On Wed, 2003-03-05 at 00:26, Sergey V. Oudaltsov wrote:
> Why would popup component SO empty in GGV? I expected to get some
> commands, some menu items - some content...

	Well - the problem is knowing quite what people want / expect from
this. Calling bonobo_control_frame_get_popup_component grabs a
UIComponent associated with the remote 'popup' UIContainer on the
Control. This is so the Control has control of it's own context menus -
and yet the frame can insert items too.

> What I am doing wrong? Is it legal to call bonobo_widget_new_control
> with null Bonobo_UIContainer?

	Yes - certainly; that's a different UIContainer though. When you do
widget_new_control - that associates a parent container into which the
Control will merge the master frame menus. The other method is to get
the Control own UIContainer for it's local menus.

	I hope that makes sense; there are several reasons for it being done
that way - many of which I don't recollect precisely.

	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.