aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/metadata-widget.c5
-rw-r--r--src/transport-widget.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index 7681be6..d522358 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -490,6 +490,11 @@ draw_album_border(GtkWidget *metadata, gboolean selected)
{
cairo_t *cr;
cr = gdk_cairo_create (gtk_widget_get_window (metadata));
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (metadata),
+ "menu");
+ #endif
+
GtkStyle *style;
style = gtk_widget_get_style (metadata);
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],