Re: Capture GdkWindow event



Good idea! But I don't know how to recast the nativeWindow as a GtkWindow
object.
When I tried:
   g_signal_connect(G_OBJECT(NS_REINTERPRET_CAST(GtkWindow*,
aNativeWindow)),
           "destroy", G_CALLBACK(nsTray::window_close_event), this);
It shows that:
GLib-GObject-WARNING **: gsignal.c:1669: signal `destroy' is invalid for
instance `0x8444a28'

On 5/24/07, Emmanuele Bassi <ebassi gmail com> wrote:

On Thu, 2007-05-24 at 23:07 +0800, åå wrote:
> Without toplevel():
> GLib-GObject-WARNING **: gsignal.c:1669: signal `destroy' is invalid for
> instance `0x8444a28'

GObject is trying to tell you that GdkWindow instances do not have a
"destroy" signal; the "destroy" signal is available for GtkObjects - so
you need a GtkWindow, not a GdkWindow.

ciao,
Emmanuele.

--
Emmanuele Bassi,  E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




--
Sorry for my poor English :)

- http://www.aragonconsultinggroup.com
- http://www.aiyo.cn


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