Sets the color that will be used to draw the this background.
Sets the color that will be used to draw the this background before the actual contents are rendered.
Note that if the web page loaded in this specifies a background color, it will take precedence over the
rgba
color. By default the this background color is opaque white. Note that the parent
window must have a RGBA visual and app_paintable property set to true for
backgrounds colors to work.
```c static void browser_window_set_background_color (BrowserWindow *window, const GdkRGBA *rgba) { WebKitWebView *web_view; GdkScreen *screen = gtk_window_get_screen (GTK_WINDOW (window)); GdkVisual *rgba_visual = gdk_screen_get_rgba_visual (screen);
if (!rgba_visual) return;
gtk_widget_set_visual (GTK_WIDGET (window), rgba_visual); gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
web_view = browser_window_get_web_view (window); webkit_web_view_set_background_color (web_view, rgba); } ```
this |
a WebView |
rgba |
a RGBA |