Re: Xft GTK GDK



There may be other ways, but I've done something similar to:

Colormap colormap = gdk_x11_colormap_get_xcolormap (gdk_drawable_get_colormap (widget->window));
Drawable drawable = gdk_x11_drawable_get_xid (widget->window);
Visual *visual = gdk_x11_visual_get_xvisual (gtk_widget_get_visual (widget));
XftDraw *xftdraw = XftDrawCreate (GDK_DISPLAY (), drawable, visual, colormap);

Noah

On Sun, Aug 17, 2003 at 15:38:56 +0430, soheil hassas yeganeh wrote:
Dear All

How can i create a XftDraw from a GtkWidget or GdkDrawable ?

I couldn't find any routine to get a Screen or Display object from a Widget.

I  used the GDK_XXX macro's but it do not work well for me

In other words, I want the mapping between the Widget and Display or
Screen of Xft

Please help me

Regards
          Soheil Hassas Yeganeh



_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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