[empathy/gnome-2-34] In gtk2 GtkProgressBar doesn't implement GTK_ORIENTABLE
- From: Sjoerd Simons <sjoerds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] In gtk2 GtkProgressBar doesn't implement GTK_ORIENTABLE
- Date: Wed, 23 Feb 2011 14:55:15 +0000 (UTC)
commit e56440d55856fb0c3d3f88a6a31e362f563a3030
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Wed Feb 23 14:45:19 2011 +0000
In gtk2 GtkProgressBar doesn't implement GTK_ORIENTABLE
src/empathy-call-window.c | 5 +++--
src/empathy-streamed-media-window.c | 8 --------
2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 5e28002..77653ff 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -586,8 +586,9 @@ empathy_call_window_create_audio_input (EmpathyCallWindow *self)
priv->volume_progress_bar = gtk_progress_bar_new ();
- gtk_orientable_set_orientation (GTK_ORIENTABLE (priv->volume_progress_bar),
- GTK_ORIENTATION_VERTICAL);
+ gtk_progress_bar_set_orientation (
+ GTK_PROGRESS_BAR (priv->volume_progress_bar),
+ GTK_PROGRESS_BOTTOM_TO_TOP);
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->volume_progress_bar),
0);
diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c
index 9635c6d..e203bdc 100644
--- a/src/empathy-streamed-media-window.c
+++ b/src/empathy-streamed-media-window.c
@@ -602,17 +602,9 @@ empathy_streamed_media_window_create_audio_input (EmpathyStreamedMediaWindow *se
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]