[Glade-users] Initialzation code without touching interfaces.c

Damon Chaplin damon@ximian.com
Mon, 11 Jun 2001 17:32:52 -0400


Jason LaPenta wrote:
> 
> Hello,
> 
> I'm new to glade. I'm using it to build an
> application that uses clist. The list needs some
> stuff put in it at the beginning. I tried to
> connect the "show" signal, but the object is
> shown before the signal is connected.. ( not very
> useful )
> 
> so I'm looking for a way to do widget init stuff
> without editing the files that glade overwrites
> when the user interface is updated.

You can add the items after creating the window.

e.g.

 window = create_window1 ();
 clist = lookup_widget (window1, "clist1");
 ... add items here ...


Damon