Getting gdkwindow from Display or Window ?

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

 



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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux