summaryrefslogtreecommitdiffstats
path: root/test/scrollbar-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/scrollbar-test.c')
-rw-r--r--test/scrollbar-test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c
index b0cdc95d..3e658b48 100644
--- a/test/scrollbar-test.c
+++ b/test/scrollbar-test.c
@@ -23,6 +23,11 @@ unsigned int test =0;
} \
}
+int textbox_get_estimated_char_height ( void );
+int textbox_get_estimated_char_height ( void )
+{
+ return 16;
+}
void color_separator ( G_GNUC_UNUSED void *d )
{
@@ -30,7 +35,8 @@ void color_separator ( G_GNUC_UNUSED void *d )
int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
{
- scrollbar * sb = scrollbar_create ( 0, 0, 10, 100);
+ scrollbar * sb = scrollbar_create ( "scrollbar", 3);
+ widget_resize ( WIDGET (sb), 10, 100);
scrollbar_set_handle ( NULL, 10213);
scrollbar_set_max_value ( NULL, 10 );