Re: How to identify a particular checkbutton ?
- From: Emmanuel Briot <briot act-europe fr>
- To: Oistein Aanensen <oistein seabed no>
- Cc: Flavio Alberto <flavio maqplas com br>, gtk-list gnome org
- Subject: Re: How to identify a particular checkbutton ?
- Date: 11 Dec 2002 12:34:59 +0100
On Wed, 2002-12-11 at 02:20, Flavio Alberto wrote:
> I create one GtkWindow using GTK 1.2 in C with a matrix formed by 20 rows x 32 columns = 640 checkbuttons to user to mark to create a "picture" to send to a device attached by serial line,
> to make the interface I used glade,
> I attached the signal "toggled" to same function (I believe that if I put 640 functions for each check button I will overload my program), and I pass the struct that keep these "bitmap" information, but I don't know how to identify each checkbutton to change the struct to send information to device, I attempt to use gtk_object_get_data but without success;
You could try to pass some user data (line and column of the button)
when you connect to the signal.
I do not have C code for that, since I usually program in Ada, but the
functions were gtk_signal_connect, and the parameter func_data...
regards,
Emmanuel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]