| View previous topic :: View next topic |
| Author |
Message |
syn
Joined: 12 May 2006 Posts: 46 Location: Hamburg
|
Posted: Mon Oct 02, 2006 7:32 pm Post subject: GtkRadioMenuItem - Could not get Signal "group-changed& |
|
|
I have tried it yesterday but find no way to get the emitteded signal "group-changed". (Maybe its not emitted?)
| Code: |
// connect GtkRadioMenuItem group
$this->radio1->connect_simple("group-changed", array($this, 'onRadioChange'));
|
radio1 is also the group of the three radios (See screenshot)
I´ve also tested to use $this->radio1->get_group();but this also dont work. Then i tested "toggled".. also no result. Do you have a tip how to do that? http://www.phoenixinteractive.mine.nu/forum/ecc/viewtopic.php?t=139
Is this a bug or is this a DAU´s-Problem!
Regards,
Andreas |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Mon Oct 02, 2006 7:47 pm Post subject: |
|
|
| group-changed is called when you change the group of the item, not when it's selected/unselected. toggled should work though. |
|
| Back to top |
|
 |
syn
Joined: 12 May 2006 Posts: 46 Location: Hamburg
|
Posted: Wed Oct 04, 2006 6:39 pm Post subject: |
|
|
Hi,
but if i use toggled in my glade base app, i get the callback twice, everytime i change the radio selection.
First call is the source radio,
second call to the callback function is the selected radio... |
|
| Back to top |
|
 |
|