[cairo] Enabling GTK drawing area alpha channel

Emmanuel Thomas-Maurin manutm007 at gmail.com
Tue May 17 09:03:11 PDT 2011


On 05/17/2011 01:35 PM, Tobias Hoffmann wrote:
> Hint: Don't use the default visual for the widget:
> 
> GdkColormap *rgba = gdk_screen_get_rgba_colormap (screen);  // GTK3: 
> gdk_screen_get_rgba_visual(screen), etc...
> if (rgba && gdk_screen_is_composited (screen)) {
>  gtk_widget_set_colormap(GTK_WIDGET(drawing_area), rgba);
> }

It worked just fine, thanks a lot!

-- 
Emmanuel Thomas-Maurin <manutm007 at gmail.com>


More information about the cairo mailing list