Re: [gtkmm] Gtk::entry set_position() problem and workaround
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Jeffrey S. Gavin" <jeff ezclick net>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Gtk::entry set_position() problem and workaround
- Date: Tue, 02 Mar 2004 14:41:44 -0500
>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]