gnope php gtk gui gnope.org  

Notebook Tab Selected

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



Joined: 29 Sep 2006
Posts: 10

PostPosted: Mon Oct 02, 2006 2:53 pm    Post subject: Notebook Tab Selected Reply with quote

I am using a gtk notebook, and would like to set a global variable which reflects the current page selected, each time a different tab is clicked on. Can anyone tell me how i might do it please? I think i probably just need to know which signal is triggered by the user clicking on a tab.

Thanks
Back to top
ssiwek



Joined: 15 May 2006
Posts: 20

PostPosted: Mon Oct 02, 2006 3:43 pm    Post subject: Reply with quote

Hi!

There are some signals you can use.

The best way to find out yourself is to install the dev_inspector
from the gnope channel.

The program shows you information about signals which every class does emitt and lots more.

hope it helps you
sven
Back to top
edlynn



Joined: 29 Sep 2006
Posts: 10

PostPosted: Mon Oct 02, 2006 4:08 pm    Post subject: Reply with quote

Thanks for the suggestion. I have all the possible signals for each class, just couldnt figure out which one it was for this action. Turns out its the switch-page signal.

Thanks
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.