summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-10 10:14:52 +0100
committerMichal Ratajsky <[email protected]>2014-11-10 10:14:52 +0100
commit18e81ee51655eb0bf122daf1d2ccdb75950bd3fe (patch)
treecd8fc95e22f43538b070a6ac7930c2f60cff81a7
parentbc8dbb819a1fde09f0d3239a1fb0b5a2b8fb8878 (diff)
downloadmate-media-18e81ee51655eb0bf122daf1d2ccdb75950bd3fe.tar.bz2
mate-media-18e81ee51655eb0bf122daf1d2ccdb75950bd3fe.tar.xz
Add forgotten GTK+ version check to GvcLevelBar
-rw-r--r--mate-volume-control/gvc-level-bar.c2
1 files changed, 2 insertions, 0 deletions
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);