summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-05-30 12:44:41 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-05-30 13:45:19 +0200
commit0555d15c469d0dffbbfc33f351f4eed5882b3370 (patch)
tree8b65446f32211d9e773f8da52525e905fc7964a4 /test
parent823a45f711b4d999bbf7cebf4fbcb5113b35b000 (diff)
scrollbar: Make it scroll again
On click for now, will add motion grab in the following commit Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'test')
-rw-r--r--test/scrollbar-test.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/scrollbar-test.c b/test/scrollbar-test.c
index bd3881f0..c9fdc140 100644
--- a/test/scrollbar-test.c
+++ b/test/scrollbar-test.c
@@ -33,6 +33,8 @@
#include <glib.h>
#include <string.h>
#include <widgets/scrollbar.h>
+#include <widgets/textbox.h>
+#include <widgets/listview.h>
#include <widgets/widget.h>
#include <widgets/widget-internal.h>
#include "rofi.h"
@@ -67,12 +69,15 @@ char * rofi_expand_path ( G_GNUC_UNUSED const char *path )
{
return NULL;
}
-int textbox_get_estimated_char_height ( void );
-int textbox_get_estimated_char_height ( void )
+double textbox_get_estimated_char_height ( void )
{
return 16;
}
+void listview_set_selected ( G_GNUC_UNUSED listview *lv, G_GNUC_UNUSED unsigned int selected )
+{
+
+}
void rofi_view_get_current_monitor ( G_GNUC_UNUSED int *width, G_GNUC_UNUSED int *height )
{