summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-05-21 12:40:57 (GMT)
committerAlexander Larsson <alexl@redhat.com>2012-05-21 12:40:57 (GMT)
commiteb56153b25f6f66017e7c921dae98306aec3180e (patch)
tree52a4f6c5482d1dd1efd5e04d33000f18045a1914
parentfbf0e164834c9093dc3553a05e5d8ebab6760a5a (diff)
downloadegg-list-box-eb56153b25f6f66017e7c921dae98306aec3180e.tar.gz
egg-list-box-eb56153b25f6f66017e7c921dae98306aec3180e.tar.xz
Test scrolled listbox not at top
-rw-r--r--test-scrolled.vala9
1 files changed, 8 insertions, 1 deletions
diff --git a/test-scrolled.vala b/test-scrolled.vala
index 669b91e..994e554 100644
--- a/test-scrolled.vala
+++ b/test-scrolled.vala
@@ -59,9 +59,16 @@ main (string[] args) {
var scrolled = new ScrolledWindow (null, null);
scrolled.set_policy (PolicyType.NEVER, PolicyType.AUTOMATIC);
hbox.add (scrolled);
+
+ var scrolled_box = new Box(Orientation.VERTICAL, 0);
+ scrolled.add_with_viewport (scrolled_box);
+
+ var label = new Label ("This is \na LABEL\nwith rows");
+ scrolled_box.add (label);
var list = new ListBox();
- list.add_to_scrolled (scrolled);
+ scrolled_box.add (list);
+ list.set_adjustment (scrolled.get_vadjustment ());
for (int i = 0; i < num_rows; i++) {
var row = new Row ();