From 18e81ee51655eb0bf122daf1d2ccdb75950bd3fe Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Mon, 10 Nov 2014 10:14:52 +0100 Subject: Add forgotten GTK+ version check to GvcLevelBar --- mate-volume-control/gvc-level-bar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mate-volume-control/gvc-level-bar.c b/mate-volume-control/gvc-level-bar.c index 289c47e..9a67c1d 100644 --- a/mate-volume-control/gvc-level-bar.c +++ b/mate-volume-control/gvc-level-bar.c @@ -823,9 +823,11 @@ gvc_level_bar_class_init (GvcLevelBarClass *klass) static void gvc_level_bar_init (GvcLevelBar *bar) { +#if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (bar)); gtk_style_context_add_class (context, GTK_STYLE_CLASS_LIST_ROW); +#endif bar->priv = GVC_LEVEL_BAR_GET_PRIVATE (bar); -- cgit v1.2.1