[Glade-users] About writing in interface.c
Andreas Volz
lists@brachttal.net
Mon, 6 Sep 2004 11:38:40 +0200
Am Thu, 2 Sep 2004 13:34:45 -0300 schrieb Mario Carugno:
> Hi there !
>
> I'm learning Glade and have the next problem. I designed an interface
> and read that interface.c can not be edited by hand. That's ok.
>
> In my designed UI, i put a 'treeview', but i know that treeviews needs
> some extra code in order to work, such as define a model (with
> GtkListStore), an iterator and so on.
>
> Now, since i can't touch interface.c, where can i write the code to
> get the treeview completed ? Even to make my treeview global, i have
> to write into interface.c
>
> I know that i can get a widget reference in a callback (with
> lookup_widget), but is there some 'load' signal ?
Can you explain what you think of if you speak about a "load" signal. I'
don't understand this. The common way is to get the widget pointers
somewhere in your application and modify the widgets how you like it.
You needn't do do this in a callback. You could also do this in main()
function before gtk_main().
regards
Andreas