[glade--]Problem adding a custom widget dinamicaly

"Find All" <[email protected]> Tue, 23 Mar 2004 10:40:29 +0000
Newsgroups gmane.comp.gnome.glademm
Message-ID <[email protected]>
I'm using glade-2 to make the UI, its works great but when I want to add a 
custom widget into a container dinamicaly (not from the glade, thats its 
from my code) the widget doen't appear.

Lets go to the code:

In the constructor of the window I do:

  this->hbox_p->pack_start(this->ds);
  this->ds.signal_expose_event().connect(SigC::slot(this->ds, 
&drawingarea_custom::on_drawingarea_custom_expose_event));
  this->ds.signal_realize().connect(SigC::slot(this->ds, 
&drawingarea_custom::on_drawingarea_custom_realize));
  this->show_all();

ds is a custom drawingarea, that I try to insert into a empty HBox.

The expose and realize event works but the widget is not visible , the 
expose event should paint all the window of the drawingarea_custom to blue, 
but doesn't.

By the way, is there a way to insert a custom widget directly from the 
glade?

_________________________________________________________________
Protege tu correo del spam y los virus con MSN 8. Prueba gratis dos meses 
MSN 8. http://join.msn.com/?pgmarket=es-es&XAPID=199&DI=1055