Re: parameters in gtk

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

 



On Thu, 13 May 2004 12:43:00 +0200, "diego81net@xxxxxxxxx" <diego81net@xxxxxxxxx>  said:
> A little question...
> When a signal is catched by gtk_main, a function is called... Can I pass more
> than one parameter to the function?? Usually, the function called has got two
> parameter: an object and an user data!!! 

Make the one parameter be a pointer to something like this:

struct my_stuff {
	struct foo *param1;
	struct bar *param2;
	struct baz *param3;
}

and then feed a 'struct my_stuff *quux;' to the signal handler.

Attachment: pgp00096.pgp
Description: PGP signature

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux