aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-call-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 0e23863ef..81c7d54a9 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -602,9 +602,19 @@ empathy_call_window_create_audio_input (EmpathyCallWindow *self)
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 3);
priv->volume_progress_bar = gtk_progress_bar_new ();
+
+ /* FIXME: Once we unconditionally depend on GTK+ 3, we can remove the fallback
+ * for GTK+ 2 here. GtkProgressBar doesn't implement GtkOrientable in GTK+ 2,
+ * unfortunately. */
+#ifndef HAVE_GTK3
gtk_progress_bar_set_orientation (
GTK_PROGRESS_BAR (priv->volume_progress_bar),
GTK_PROGRESS_BOTTOM_TO_TOP);
+#else
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (priv->volume_progress_bar),
+ GTK_ORIENTATION_VERTICAL);
+#endif
+
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->volume_progress_bar),
0);