Re: Get a Widget-Pointer



Konrad Mader <konrad mader gmx de> writes:

Hi,

After a 'create_Hauptfenster()' I want to use 
gtk_clist_append(). How can I handle 'clist1'?
One way to do this is to use the lookup_widget defined in
support.h by glade (implemented in support.c).



void foo( )
{
  GtkWidget *Haupt ;    
  GtkWidget *local_clist_ptr ;

  Haupt = create_HauptFenster();
  local_clist_ptr = lookup_widget (Haupt, "clist1");
}

It's documented in glade FAQ .

Beware of the fact, 
you need a toplevel widget as first parameter in lookup_widget !
Or at least, a widget which contains your clist ;

-- 
-- 
J-François LECOMTE                      IDEALX S.A.S.
Développeur                             15-17, av. de Ségur
01.44.42.00.00                          F-75007 PARIS
06.67.65.95.09                          http://IDEALX.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]