Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > A question on G...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 45745 of 45898
Post > Topic >>

A question on Gtkmm's

by "jalqadir@[EMAIL PROTECTED] " <jalqadir@[EMAIL PROTECTED] > May 3, 2008 at 04:50 PM

I would like to add a signal to a Gtk::Entry object, but for some
reason this gives me bunch of errors saying that it is

D:\XWin\include\sigc++-2.0\sigc++\adaptors\adaptor_trait.h|84|error:
no match for call to `(sigc::bound_mem_functor0<bool, jv+e::Entry>)
(GdkEventFocus* const&)'

I using Gtkmm 2.10.x for Windows
Thanks in advance!

Can any body help?!
namespace jve{
class Entry: virtual public Gtk::VBox {

      .......
      Gtk::Entry* text_box;
public:
      Entry();
      .........
      void onBlanck();
};
}
jve::Entry::Entry(){
      ....
      text_box  = Gtk::manage(new Gtk::Entry());
      text_box->signal_focus_out_event().connect(sigc::mem_fun(*this,
&Entry::onBlank)); <== here is the problem
      ....
}
bool jve::Entry::onBlank(){
      ....
      // Display a Dialogbox explaining the problem
      ....
      //! recapture the focus
      text_box->grab_focus();
      return false
}




 3 Posts in Topic:
A question on Gtkmm's
"jalqadir@[EMAIL PRO  2008-05-03 16:50:01 
Re: A question on Gtkmm's
alasham.said@[EMAIL PROTE  2008-05-05 05:23:33 
Re: A question on Gtkmm's
"jalqadir@[EMAIL PRO  2008-05-07 04:56:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 6:52:44 CDT 2008.