Re: My first GNOME app



Adriano Galano wrote:
> 
> Hi:
> 
> I try to develop my first GNOME/GTK app. I generate one framework with
> glade based in the GNOME app widget. Add it an CList Widget...until this
> moment is it OK.
> 
> But, I need to append list to the clist component and glade generate a
> function named create_app and the clist Widget is local to this function
> (the function is in interfaces.c). Now I want to add the data obtained
> from a dialog box to my clist but I need to do that in main.c.
> 
> What can I do?

Use the lookup_widget() function that Glade provides in the support.c file.
e.g.

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

Damon





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