Re: avoid background painting GtkWindow



On 7 February 2011 11:23, Georg Mitterböck <mitterboeck lunatone com> wrote:
> I'm just trying to tell GtkViewport not draw the default background
> with gtk_widget_set_app_paintable() function, and setting background
> pixmap gdk_window_set_back_pixmap (vp->window, NULL, FALSE);
>
> it still draws the gray background.
> does anybody have a clue on how to do it?

I have this working in my app. I believe you also need to disable
gtk's double-buffering with something like:

        gtk_widget_set_double_buffered( widget, FALSE );

Otherwise gtk will initialize the temporary back buffer to the
background colour.

John


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