RE: Is it possible to share a callback function in order to detect which a button is clicked?

2010-02-05 Thread Bokyun Na
6 PM >> To: Ken Resander >> Cc: gtk-list@gnome.org >> Subject: Re: Is it possible to share a callback function in order to >> detect which a button is clicked? >> >> On Fri, Feb 05, 2010 at 03:34:08AM -0800, Ken Resander wrote: >> > I cannot see the dm use

Re: Is it possible to share a callback function in order to detect which a button is clicked?

2010-02-05 Thread David Nečas
On Fri, Feb 05, 2010 at 03:34:08AM -0800, Ken Resander wrote: > I cannot see the dm userdata parameter being initialised. > > Insert dm->clicked = num; before g_signal_connect in the double-nested  loop. > Then you can test on dm->clicked in the callback to check which > button is clicked. There

RE: Is it possible to share a callback function in order to detect which a button is clicked?

2010-02-05 Thread Ken Resander
Is it possible to share a callback function in order to detect which a button is clicked? To: gtk-list@gnome.org Date: Friday, 5 February, 2010, 5:47 PM I appreciate for your attention on my problem. I think we have a little bit different point of view on this problem. I want to make a callback fu

Re: Is it possible to share a callback function in order to detect which a button is clicked?

2010-02-05 Thread David Nečas
On Fri, Feb 05, 2010 at 06:47:31PM +0900, Bokyun Na wrote: > I appreciate for your attention on my problem. > I think we have a little bit different point of view on this problem. > > I want to make a callback function on several buttons or even on drawing > areas. > For example, when I clicked a

RE: Is it possible to share a callback function in order to detect which a button is clicked?

2010-02-05 Thread Bokyun Na
I appreciate for your attention on my problem. I think we have a little bit different point of view on this problem. I want to make a callback function on several buttons or even on drawing areas. For example, when I clicked a button, A, this callback function knows that button A is clicked and W