Re: Glade





Jason McAfee wrote:

> Have you tried the lookup_widget function that is in support.c?
> You can also look at the editor example that came with glade.  In the
> callbacks file of that example it shows some very good examples of how
> to reference other objects using the lookup function.
>
> In your callbacks file try something like this...
>
> void some_function (GtkMenuItem *item, gpointer user_data)
> {
>
> GtkWidget *winmain;
>
> /* You can find the details of this function in the support.c file*/
> winmain = lookup_widget(GTK_WIDGET(item),"winmain");
>
> code....
>

I know the look_up widget.I want the first window to catch the signal and then
change something in the second window. This can not be done with lookup_widget.

> }
>
> "T.S" wrote:
> >
> > I made an interface with Glade. It creates four C
> > files(interface,callbacks,support,main).
> > In interface i've got two function(winmain,fileselection), these two
> > function creates interface with all the callbacks.In callbacks i've got
> > functions like
> > on_btnext_clicked(GtkButton button,gpointer data);
> > With help of button i could alter contents of any other widget that is
> > in winmain, but i can't access the widgets in fileselection, withtout
> > making fileselection a global variable.
> >
> > Is there any other way?
> >  Tomaz
> >                                                     Sorry for my english
> >
> > --
> > To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null





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