Getting gdkwindow from Display or Window ?
- From: "Antonio Gomes" <tonikitoo gmail com>
- To: gtk-list gnome org
- Subject: Getting gdkwindow from Display or Window ?
- Date: Mon, 14 Aug 2006 00:01:22 -0400
Hi all,
I'd like to get a gdk_window instance of an window without having much information about such window (I am not quite sure if it is possible though). Currently I am try to do this (wrongly) as following :
(...)
// getting the gdk_window object needed by gtk_im_* stuff.
Display *display = GDK_DISPLAY ();
if (!display) return NS_ERROR_UNEXPECTED;
GdkDisplay* gdk_display = gdk_x11_lookup_xdisplay (display);
if (!gdk_display) return NS_ERROR_UNEXPECTED;
// maybe here I have to get a "Window *" , but how???
// FIXME: Get the right gdkwindow here !!!
mGdkWindow =
(GdkWindow *) gdk_display_get_default_group (gdk_display);
if (!mGdkWindow) return NS_ERROR_UNEXPECTED;
(...)
it's getting me the wrong gdkwindow.
Is it possible to do what I want to ? Am I missing ?
regards
--
--Antonio Gomes
Nokia Technology Institute
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]