diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-07 17:58:23 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-09-07 17:58:23 +0800 |
commit | 31fec20a7f2d38235902608d1122b55f5096e7e0 (patch) | |
tree | 7038ca2cb13bb4115288e6fea7e50f42beb149d1 /src | |
parent | 290a4853102e645d76318e8e09ef45420a6559bc (diff) | |
download | gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar.gz gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar.bz2 gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar.lz gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar.xz gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.tar.zst gsoc2013-empathy-31fec20a7f2d38235902608d1122b55f5096e7e0.zip |
Don't use gtk_progress_bar_set_orientation() when building with GTK+ 3
GtkProgressBar now implements GtkOrientable, but this hasn't been backported
to GTK+ 2, so we need to use some #ifdef magic.
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 10 |
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); |