From 83566829d9c2ba7153d7afd7c2aa7564fd4fd23b Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Thu, 21 Feb 2013 14:14:07 -0500 Subject: Add a comment explaining the change in the last commit --- src/transport-widget.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/transport-widget.c b/src/transport-widget.c index c29de5e..ebe8282 100644 --- a/src/transport-widget.c +++ b/src/transport-widget.c @@ -1301,6 +1301,15 @@ 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]; + /* Use the menu's style instead of that of the menuitem ('button' is a + * menuitem that is packed in a menu directly). The menuitem's style + * can't be used due to a change in light-themes (lp #1130183). + * Menuitems now have a transparent background, which confuses + * GtkStyle. + * + * This is a workaround until this code gets refactored to use + * GtkStyleContext. + */ style = gtk_widget_get_style (gtk_widget_get_parent (button)); bg_color.r = style->bg[0].red/65535.0; -- cgit v1.2.3