Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples
- From: Murray Cumming <murrayc murrayc com>
- To: Igor Gorbounov <igorbounov topazelectro ru>
- Cc: gtk-list <gtk-list gnome org>, gtkmm-list gnome org
- Subject: Re: Gdk::Window::add_filter() or gdk_window_add_filter() examples
- Date: Thu, 22 Dec 2005 09:36:57 +0100
On Thu, 2005-12-22 at 08:04 +0300, Igor Gorbounov wrote:
> Hi, All!
> I need any hints about using Gdk::Window::add_filter(GdkFilterFunc
> function, gpointer data) or
> gdk_window_add_filter(...), in particular what this filter function
> looks like and how those
> gpointer data are made.
> Igor Gorbounov
The data is some "state" information (such as a pointer to a C++ class
instance) that will be passed to the callback function.
This hasn't been wrapped as a sigc::slot<>, probably because I couldn't
see when it would be useful. The documentation says "This is a low-level
operation and makes it easy to break GDK and/or GTK+, so you have to
know what you're doing" and that scares me a bit.
This would be easy for someone to wrap properly. See the other
SignalProxy_* classes in the .ccg files. A patch would be welcome.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]