aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-02-21 12:32:12 -0500
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-02-21 12:32:12 -0500
commit59ab3822906f22d0e0ac8d65e40055c6367fabfb (patch)
treea38ad8c482d0d04047af282b2c37d1a3f1baaa02 /src/transport-widget.c
parent4619f0c59029cf2b263a3ed40052bc4eff67052b (diff)
downloadayatana-indicator-sound-59ab3822906f22d0e0ac8d65e40055c6367fabfb.tar.gz
ayatana-indicator-sound-59ab3822906f22d0e0ac8d65e40055c6367fabfb.tar.bz2
ayatana-indicator-sound-59ab3822906f22d0e0ac8d65e40055c6367fabfb.zip
transport-widget: use menu's style for the buttons
The menuitem's style can't be used anymore due to a recent change in light-themes (lp #1130183). Menuitems now have a transparent background, which confuses GtkStyle. This is a quick workaround. Going forward, we should use the more modern styling features of gtk.
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 0931e1d..c29de5e 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -1301,7 +1301,7 @@ draw (GtkWidget* button, cairo_t *cr)
color_play_outer[2], color_play_outer_prelight[2],
color_button[4], color_button_shadow, color_inner[2], color_inner_compressed[2];
- style = gtk_widget_get_style (button);
+ style = gtk_widget_get_style (gtk_widget_get_parent (button));
bg_color.r = style->bg[0].red/65535.0;
bg_color.g = style->bg[0].green/65535.0;