diff options
author | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-07 13:01:30 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-06-07 13:01:30 +0000 |
commit | 23e84b5fae4b75a02d5569dd36231be7fd46863c (patch) | |
tree | d6ff3b59af3375f7f946b04f8514c34dc04225bf /tests | |
parent | 0da04c7e6bca421ffe3c812ac13eb3763f0b3922 (diff) | |
download | libcroco-23e84b5fae4b75a02d5569dd36231be7fd46863c.tar.gz |
just added a scrollbar to the croco renderer test window.
Dodji.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test7-main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/test7-main.c b/tests/test7-main.c index af24867..aba77b6 100644 --- a/tests/test7-main.c +++ b/tests/test7-main.c @@ -296,7 +296,8 @@ test_layout_box (void) gtk_window_set_title (GTK_WINDOW (window), "Croco Renderer Test") ; gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, TRUE) ; - gtk_widget_set_usize (window, 800, 600) ; + gtk_window_set_usise () ; + g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (delete_event_cb), @@ -309,13 +310,15 @@ test_layout_box (void) goto cleanup ; } gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC) ; + GTK_POLICY_ALWAYS, + GTK_POLICY_ALWAYS) ; box_view = cr_box_view_new (box_model) ; + gtk_container_add (GTK_CONTAINER (window), scroll) ; - gtk_container_add (GTK_CONTAINER (scroll), - GTK_WIDGET (box_view)) ; + gtk_container_add + (GTK_CONTAINER (scroll), + GTK_WIDGET (box_view)) ; gtk_widget_show_all (window) ; gtk_main () ; |