Re: How to convert X Pixmap into GdkPixmap?
- From: Tristan Van Berkom <tvb gnome org>
- To: Peter Zhelezniakov <peter zhelezniakov gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to convert X Pixmap into GdkPixmap?
- Date: Mon, 27 Feb 2006 14:25:51 -0500
Peter Zhelezniakov wrote:
Hello Gtk gurus,
I have an X Display and an X Pixmap associated with that display, both
provided by a third-party library. I'd like to use the Pixmap in a GTK
program by wrapping it into a GdkPixmap structure. More specifically, i want
to use GTK's style functions (like gtk_paint_box) to draw to my Pixmap.
gdk_pixmap_foreign_new() should be what you're looking for.
How do i do that? I guess i need to convert X Display into a GdkDisplay
first -- how? gdk_x11_lookup_xdisplay() gives me NULL -- is that correct?
Use the macros, I think there is one of the form GDK_WINDOW_XDISPLAY().
You should find all of this in the xlib interaction section of the GDK
api reference manual.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]