Re: [gtkmm] Get Xwindow ID from A Gtk(mm) Window (gtkmm 2.0)



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]