Re: [gtkmm] Gtk::entry set_position() problem and workaround



>We cannot figure out how to fassion a 'Glib::signal_idle().connect' 
>statement where we can pass the entry widget, the set_position method 
>and the position parameter so we don't have to use global variables and 
>our helper 'sp' function.  I would love to improve our workaround.

     #include <sigc++/bind.h>

     class Object {
         ...
	 gint method (Gtk::Widget*, sometype_t pos);
	 ...
     }

     using namespace SigC;

   signal_idle().connect (bind (slot (*objectptr, &Object::method),
                                w, pos));



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