Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Ravee Kondrakunta
Hi, I created a dialog with glade. In this dialog, I have a HBox with two widgets, one is the label and the other widget will be determined at the runtime. In the code I got the reference to the HBox using get_widget after loading the glade file and then I am adding my widget to the HBox

Re: Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Yu Feng
On Thu, 2008-12-11 at 03:52 +0530, Ravee Kondrakunta wrote: Hi, I created a dialog with glade. In this dialog, I have a HBox with two widgets, one is the label and the other widget will be determined at the runtime. In the code I got the reference to the HBox using get_widget after

RE: Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Ravee Kondrakunta
Yes, I had set it. Any other input. Is this the right way to do. Becase I am getting the instance created by glade and using that I was trying to add new widget. -Ravee From: Yu Feng [EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 2:57 PM To: Ravee

Re: Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Tristan Van Berkom
You can add your widget to glade instead of playing fancy container tricks. Here is an example where you add a completely virtual widget class: http://www.gnome.org/~tvb/testcatalog.xml You'll find the full documentation here: http://glade.gnome.org/docs These docs apply for dev glade

RE: Dynamically adding a wiget to a container created by glade

2008-12-10 Thread Yu Feng
On Thu, 2008-12-11 at 04:38 +0530, Ravee Kondrakunta wrote: Yes, I had set it. Any other input. Is this the right way to do. Becase I am getting the instance created by glade and using that I was trying to add new widget. The instance created by glade is nothing more mysterious than an