summaryrefslogtreecommitdiff
path: root/tests/testcellarea.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-02 17:10:10 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-02 17:10:10 +0900
commitcd09abf461f15e464ce92fc3b22d0661be7352f2 (patch)
tree90cc7a26b15236f39bb24fa7d4711db871790ae9 /tests/testcellarea.c
parent2bf8f7eab9ac2cec2239ca037689d6a465156b7e (diff)
downloadgtk+-cd09abf461f15e464ce92fc3b22d0661be7352f2.tar.gz
Changed tests/testcellarea.c (and scaffolding) to only reorient the GtkCellArea
It's a better test case if the scaffolding only displays the rows from top to bottom and doesnt line up the cells from left to right (because it shows that height-for-width still works with vertically oriented areas).
Diffstat (limited to 'tests/testcellarea.c')
-rw-r--r--tests/testcellarea.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testcellarea.c b/tests/testcellarea.c
index 29d14904c6..029f507cb7 100644
--- a/tests/testcellarea.c
+++ b/tests/testcellarea.c
@@ -119,9 +119,10 @@ static void
orientation_changed (GtkComboBox *combo,
CellAreaScaffold *scaffold)
{
+ GtkCellArea *area = cell_area_scaffold_get_area (scaffold);
GtkOrientation orientation = gtk_combo_box_get_active (combo);
- gtk_orientable_set_orientation (GTK_ORIENTABLE (scaffold), orientation);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (area), orientation);
}
static void