Re: Style/Theory
- From: "Sean Cody" <umcodysw cc UManitoba CA>
- To: <gtk-list redhat com>
- Subject: Re: Style/Theory
- Date: Fri, 10 Sep 1999 20:41:09 -0500
> entry = gtk_entry_new ();
> button = gtk_button_new_with_label ("foo");
> (...Code to put the widgets in their parent containers...)
> gtk_signal_connect (GTK_OBJECT (button), "clicked",
> GTK_SIGNAL_FUNC (callback),
> entry);
>
>And repeat this with each entry/button pair you want to create. You
>don't have to keep any of the widgets in global variables after you've
>finished setting them up how you want.
>
But in my case I have a window where there is only 1 button which will have
a call back..... how would I be able to get the data from each widget in the
window the button is attached to when it is clicked?
Sean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]