Re: [gtkmm] Get Xwindow ID from A Gtk(mm) Window (gtkmm 2.0)
- From: stephan wezel <s wezel web de>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Get Xwindow ID from A Gtk(mm) Window (gtkmm 2.0)
- Date: Wed, 6 Aug 2003 14:09:18 +0200
hmm it doesn't work :(
i can't compile it. I get following error:
main.cpp: In constructor `full::full()':
main.cpp:356: cannot convert `_GdkDrawable' to `GdkDrawable*' for argument `1'
to `XID gdk_x11_drawable_get_xid(GdkDrawable*)'
make: *** [main.o] Fehler 1
When i use
GDK_WINDOW_XID((get_frame()->gobj())); in place of GDK_WINDOW_XID(*(get_frame()->gobj()));
is can compile it.
But when i want to start the programm, i become a Memory access error.
On Wed, 6 Aug 2003 12:17:37 +0100 (BST)
"Matthew Walton" <matthew alledora co uk> wrote:
> It is... GDK provides a macro GDK_WINDOW_XID() which returns the X id of a
> GdkWindow, so you need a GdkWindow to pass to it.
>
> Happily, Gtk::Window::get_frame() will get you a
> Glib::RefPtr<Gdk::Window>, and Gdk::Window::gobj() will get you a
> GdkWindow.
>
> So you might be able to do it with something like
>
> GDK_WINDOW_XID(*(my_window.get_frame()->gobj()));
>
> There may be an easier way to do it, but I can't find it at the moment.
>
> Stephan Wezel said:
>
> > Hi,
> >
> > is it possible to get the xwindow id of a Gtk(mm) window ??
> > if , how??
> >
> > I hope you understand my questions, becaus my english isn`t so good :)
> >
> > stephan
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]