Re: double view for a node?



Hi Kang,

On Sun, 2002-07-21 at 16:23, Kang Jeong-Hee wrote:
> I've finally found the way to get appricate node's widget.
> here lines of code: (from fullscreen.c:661 of gThumb)

	You should never call these methods:

>                 /* I filed bug 88741 for name of this API */
>                 node = bonobo_ui_engine_get_path (engine, "/Toolbar");
>                 widget = bonobo_ui_engine_node_get_widget (engine, node);

	These are implementation private methods, and will go away in future,
they are guarded with INTERNAL #defines in the header, and you must not
use them, they are an implementation detail and your code will break at
random in future.

	What are you trying to do ?

>                 /* this get_parent() is dirty hack.
>                  * without this line, toolbar does not reparented even.
>                  */

	This sounds like an aweful hack; what are you trying to do ? Nautilus
manages to grab the root window without doing this sort of evilness, how
is it you can't do something similar ?

> I want to make a toolbar for the fullscreen, not just for main window.
> so as another common widget does, I tried gtk_widget_reparent().
> and failed with bunch lines of error.

	What widget are you using for the 'fullscreen' ? and why not use a
BonoboWindow (GtkWindow) for that ?

	Regards,

		Michael.

-- 
 mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]