GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Dec 22, 2014 1:30 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Gtk button..
PostPosted: Tue Feb 07, 2012 1:37 pm 
Offline
Familiar Face

Joined: Wed Feb 01, 2012 10:39 am
Posts: 7
Hi all..
My question is can we assign two or more signals to a button?? I mean when a button is clicked can two or more signals attached to it will work properly??


Top
 Profile  
 
 Post subject: Re: Gtk button..
PostPosted: Tue Feb 07, 2012 5:30 pm 
Offline
Never Seen the Sunlight

Joined: Wed Jul 23, 2008 10:31 am
Posts: 2406
Location: Slovenia
Hi.

If I understand you correctly, you want to connect more than one callback to particular signal. This is possible (your callbacks will be called in order they were connected to specific signal).

Cheers,
Tadej


Top
 Profile  
 
 Post subject: Re: Gtk button..
PostPosted: Wed Feb 08, 2012 1:25 am 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
If you mean two different signals such as "clicked", "released", "realize" then the answer is also yes (though you will want to ensure that the functionality of each doesn't conflict with each other).
Not sure why one would connect two callbacks to the one signal when you could just call one from the other anyway or have a parent function that calls both.


Top
 Profile  
 
 Post subject: Re: Gtk button..
PostPosted: Fri Feb 10, 2012 4:29 am 
Offline
Familiar Face

Joined: Wed Feb 01, 2012 10:39 am
Posts: 7
Thank you for your replies..yeah..I tried it,it's possible but however i found out an alternative for my part of code thank you :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group