aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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],