GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

connected handler for Gtk::FileChooserButton not triggered

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
MacSlow
Familiar Face


Joined: 21 Sep 2005
Posts: 17
Location: Aachen, Germany

PostPosted: Sun Sep 25, 2005 6:09 am    Post subject: connected handler for Gtk::FileChooserButton not triggered Reply with quote

Greetings everybody!

I have a Gtk::FileChooserButton (read/generated from a .glade file) to which I connect my handler:

Code: (Plaintext)
1
2
3
4
5
6
7
void on_file_activated ()
{
    std::cout << "on_file_activated() triggered - selected file = \""
            << pFCB->get_filename ()
            << "\""
            << std::endl;
}


with this call:

Code: (Plaintext)
1
pFCB->signal_file_activated().connect (sigc::ptr_fun (on_file_activated));


I successfully compile and run my program, but when using the Gtk::FileChooserButton in question the text-output from the handler-function does not get executed. What am I missing here?

BTW, I'm using gtk+-2.8.3 (gktmm-2.8.0).

Thanks in advance for your time and kind advice!

Best regards...

MacSlow
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP