GNOME Bugzilla – Bug 164938
Patch to add new and deprecate old filter methods of Gdk::Window
Last modified: 2005-02-01 17:44:34 UTC
I have added add_filter and remove_filter which take slots to Gdk::Window. I have tested this code in "Coaster" for use with a tray icon on the panel, but the code is so strange that I thought it might be a bit much for the gtkmm examples. If need be, I can add an example.
Created attachment 36388 [details] [review] gdk_window.diff
1. I'm not happy that the SignalProxy_FilterFunc that's newed in add_filter() is never deleted. At first glance, it looks like the C function needs a destroy_notify callback. 2. In remove_filter(), gdk_window_remove_filter() is almost certainly expecting the same function-pointer and user-data that was previously given to gdk_window_add_filter. I don't see the sense in newing another SignalProxy_FilterFunc filter.
I see no great need for this, and it's marked as something that we shouldn't use much, and there's no easy way to wrap it.