[gtk+] Adapt testgtk progressbar test to api changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adapt testgtk progressbar test to api changes
- Date: Thu, 2 Sep 2010 04:07:24 +0000 (UTC)
commit 3302f22da28a1019ebb0250fe7a57053eb9d6031
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 1 23:26:19 2010 -0400
Adapt testgtk progressbar test to api changes
tests/testgtk.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 3a7ad84..ce3060f 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -8561,8 +8561,15 @@ progressbar_toggle_orientation (GtkWidget *widget, gpointer data)
i = gtk_combo_box_get_active (GTK_COMBO_BOX (widget));
- gtk_progress_bar_set_orientation (GTK_PROGRESS_BAR (pdata->pbar),
- (GtkProgressBarOrientation) i);
+ if (i == GTK_PROGRESS_LEFT_TO_RIGHT || i == GTK_PROGRESS_RIGHT_TO_LEFT)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (pdata->pbar), GTK_ORIENTATION_HORIZONTAL);
+ else
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (pdata->pbar), GTK_ORIENTATION_VERTICAL);
+
+ if (i == GTK_PROGRESS_RIGHT_TO_LEFT || i == GTK_PROGRESS_BOTTOM_TO_TOP)
+ gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (pdata->pbar), TRUE);
+ else
+ gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (pdata->pbar), FALSE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]