aboutsummaryrefslogtreecommitdiff
path: root/src/idooffscreenproxy.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-02-08 23:18:09 -0500
committerKen VanDine <ken.vandine@canonical.com>2012-02-08 23:18:09 -0500
commita6f5ba8a846dbec71b4f403c95b81c069c4c02a3 (patch)
treeea9cbb00748fee626ca37572c743c9ee96d39e6a /src/idooffscreenproxy.c
parent4471ef23e5e4849360a1a08b34ac54351c03c885 (diff)
downloadayatana-ido-a6f5ba8a846dbec71b4f403c95b81c069c4c02a3.tar.gz
ayatana-ido-a6f5ba8a846dbec71b4f403c95b81c069c4c02a3.tar.bz2
ayatana-ido-a6f5ba8a846dbec71b4f403c95b81c069c4c02a3.zip
add style class "menubar" to the offscreen proxy, this fixes the white background drawn in the sound menu with the current gtk3/light-themes (LP: #925700)
Diffstat (limited to 'src/idooffscreenproxy.c')
-rw-r--r--src/idooffscreenproxy.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/idooffscreenproxy.c b/src/idooffscreenproxy.c
index 79cb626..e6aea84 100644
--- a/src/idooffscreenproxy.c
+++ b/src/idooffscreenproxy.c
@@ -482,6 +482,8 @@ ido_offscreen_proxy_draw (GtkWidget *widget,
sc = get_menu_style_context();
+ gtk_style_context_add_class (sc, "menubar");
+
gtk_render_background (sc, cr,
0, 0,
gdk_window_get_width (window),
@@ -489,8 +491,6 @@ ido_offscreen_proxy_draw (GtkWidget *widget,
g_object_unref (sc);
-
-
if (gtk_cairo_should_draw_window (cr, window))
{
cairo_surface_t *surface;
@@ -505,12 +505,11 @@ ido_offscreen_proxy_draw (GtkWidget *widget,
}
else if (gtk_cairo_should_draw_window (cr, proxy->priv->offscreen_window))
{
-
if (proxy->priv->child)
gtk_container_propagate_draw (GTK_CONTAINER (widget),
proxy->priv->child,
cr);
- }
+ }
return TRUE;
}