[Glade-users] Default List elements

Damon Chaplin damon@helixcode.com
Wed, 04 Oct 2000 01:04:28 +0100


Fethiye Akbulut wrote:
> 
> I have created a window, including a "scrolled window" which
> contains a "list". I would like to add some values in that list to
> show up when the project is started.
> 
> How do I access to the list when it is defined in create_window1()
> function created in interface.c automatically? Where should the code
> go, not in interface.c I assume. Which signal should be used? This question
> goes for the other widgets created in the window, too.

Use the lookup_widget() function Glade provides, e.g. in main.c:

  window1 = create_window1();
  list1 = lookup_widget (window1, "list1");
  ... add items to list ...


Damon