Re: container in the fullscreen mode, gqview 2.0.0

"Alastair M. Robinson" <blackfive-6XJYVlf3IKydIjPUd+0xT1pr/1R2p/[email protected]> Fri, 09 Feb 2007 18:41:54 +0000
Newsgroups gmane.comp.gnome.apps.gqview.devel
Message-ID <[email protected]>
Hi,

Jorge Andrade wrote:

> If i want to add another object as example a drawing area to the 
> container, what shoul i do?

That depends - do you want your drawing area to overlap the image, or do 
you want the image reduced so there's room for your drawing area 
beside/above it?

> I already try make vbox, and add fs->imd->widget to vbox, but the screen 
> split and the images doesn't show up. If add a drawing area to the 
> fs->imd->widget using :

Are you sure you called gtk_widget_show() on *both* the vbox and the 
drawing area widget?

> An error has show up :
> 
> Gtk-CRITICAL **: gtk_box_pack_end: assertion `GTK_IS_BOX (box)' failed

Yes, it would.  gtk_box_pack_* only works on GTK_BOX objects - and a 
window isn't a GTK_BOX - it's a GTK_CONTAINER, which can only have one 
child attached.

> Is there any sugestion to fix it up. The purpose that i want is to make 
> a simple line drawing in the left corner of fullscreen. Thank your for 
> your reply.

If you want the image reduced to make room for the drawing area, then 
see the hint about gtk_widget_show() above.

If you want your widget to overlap the image, then I think you'd be 
better off creating a second, smaller window, or maybe a dialog, to 
contain your widget.

All the best,
--
Alastair M. Robinson

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642