aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-02-09 00:30:16 -0500
committerKen VanDine <ken.vandine@canonical.com>2012-02-09 00:30:16 -0500
commiteec3ce5bf89212a5e47e4d4ba56e3b468472e7c4 (patch)
treeea9cbb00748fee626ca37572c743c9ee96d39e6a /src
parent4471ef23e5e4849360a1a08b34ac54351c03c885 (diff)
parenta6f5ba8a846dbec71b4f403c95b81c069c4c02a3 (diff)
downloadayatana-ido-eec3ce5bf89212a5e47e4d4ba56e3b468472e7c4.tar.gz
ayatana-ido-eec3ce5bf89212a5e47e4d4ba56e3b468472e7c4.tar.bz2
ayatana-ido-eec3ce5bf89212a5e47e4d4ba56e3b468472e7c4.zip
add style class "menubar" to the offscreen proxy, this fixes the white background drawn in the sound menu menu with the current gtk3/light-themes (LP: #925700)
Diffstat (limited to 'src')
-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;
}