Re: [glade--]radiobutton "clicked" signal handler

Syed Sajjad Lateef <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Message-ID <Pine.LNX.4.44.0205290930160.10228-100000@pawpawlux.cstl.labs.mot.com>
On Wed, 29 May 2002, Christof Petig wrote:

> Syed Sajjad Lateef wrote:
> > 1. I would like only B's signal handler called when B is clicked. I don't
> > want to have the signal handler for A called. How can I do this?
> 
> Please ask on the gtkmm mailing list and then tell me, too. I'd love to 
> know myself, but didn't find the time to ask or investigate.

Thanks, Christof. And, Thank You, for creating and maintaining glademm. 

After further investigation, I created a separate Gtk::RadioButton::Group 
object for each radio button. This ensured that the signal for each radio 
button was sent only to that button. 

Initially, I tried assigning 'user_data' to each button and then accessing
the 'user_data' from each callback function. I was hoping that only the 
user_data for the button that was clicked would be sent to both buttons. 
But, no, different user_data (corresponding to each button) was sent to 
those buttons. 

I realize that this is a non-standard way of using the radio button. But,
I need circular "active" areas for an imagemap. Until I can figure out a
way to do an imagemap correctly in Gtk--/glademm, I am using the circular
radiobuttons to define the active areas of the imagemap (therefore, a
different theme would not be of much help).


Sajjad
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.