gnope php gtk gui gnope.org  

GtkRadioMenuItem - Could not get Signal "group-changed&

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
syn



Joined: 12 May 2006
Posts: 46
Location: Hamburg

PostPosted: Mon Oct 02, 2006 7:32 pm    Post subject: GtkRadioMenuItem - Could not get Signal "group-changed& Reply with quote

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! Smile

Regards,
Andreas
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Oct 02, 2006 7:47 pm    Post subject: Reply with quote

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

PostPosted: Wed Oct 04, 2006 6:39 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.