Re: [Fwd: connecting to signal_focus_out_event with additional parameters]



Perhaps you missed the part of my original message where I detailed
attempting to implement your suggestion. Unfortunately, the linker pukes
when I tried to do this.
 
Bob
 
-------Original Message-------
 
From: Murray Cumming
Date: 10/20/05 08:59:15
To: Bob Caryl
Cc: gtkmm-list
Subject: Re: [Fwd: connecting to signal_focus_out_event with additional
parameters]
 
I suggest that you derive a new Gtk::Entry, and make the signal handler a
member method of it, or use sigc::bind() to pass a pointer to the
Gtk::Entry.
 
<snip>
> so I tried doing this:
>
> myentry->signal_focus_out_event().connect(sigc::bind<Gtk::Entry>
*>(sigc::mem_fun(*this,&MyClass::on_entry_focus_out),myentry));
>
> where on_entry_focus out is prototyped thus:
>
> bool MyClass::on_entry_focus_out(GdkEventFocus *focus,Gtk::Entry *entry);
>
> This construct compiles, but the linker has big problems with it.
>
<snip>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]