aboutsummaryrefslogtreecommitdiff
path: root/src/transport-widget.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-06-28 11:39:16 +0100
committerConor Curran <conor.curran@canonical.com>2011-06-28 11:39:16 +0100
commit61d2139ecadae8ba301fc7b760dc514541868ecc (patch)
treece875344ef418fc553115b0350528d8d14306e85 /src/transport-widget.c
parentb71505f2ebffc8b4c8766a6f2b5147fb61ee931e (diff)
downloadayatana-indicator-sound-61d2139ecadae8ba301fc7b760dc514541868ecc.tar.gz
ayatana-indicator-sound-61d2139ecadae8ba301fc7b760dc514541868ecc.tar.bz2
ayatana-indicator-sound-61d2139ecadae8ba301fc7b760dc514541868ecc.zip
colours of buttons and blank album art background fixed
Diffstat (limited to 'src/transport-widget.c')
-rw-r--r--src/transport-widget.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c
index 2c2bd48..11e0f91 100644
--- a/src/transport-widget.c
+++ b/src/transport-widget.c
@@ -1235,14 +1235,15 @@ draw (GtkWidget* button, cairo_t *cr)
#if ! GTK_CHECK_VERSION(3, 0, 0)
GtkAllocation allocation;
gtk_widget_get_allocation (button, &allocation);
- cairo_translate (cr, allocation.x, allocation.y);
-
- //g_debug("button x allocation = %i", allocation.x);
- //g_debug("button y allocation = %i", allocation.y);
+ cairo_translate (cr, allocation.x, allocation.y);
#endif
GtkStyle *style;
-
+
+#if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ "menu");
+#endif
CairoColorRGB bg_color, fg_color, bg_selected, bg_prelight;
CairoColorRGB color_middle[2], color_middle_prelight[2], color_outer[2], color_outer_prelight[2],
color_play_outer[2], color_play_outer_prelight[2],