From 22d690d5356d79011256d66f6cab493f4c0bba55 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 5 Sep 2015 19:07:56 -0400 Subject: [PATCH] More area work. --- gtkarea/area.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gtkarea/area.c b/gtkarea/area.c index 8f7f9668..dfdcebf4 100644 --- a/gtkarea/area.c +++ b/gtkarea/area.c @@ -18,7 +18,13 @@ static void areaWidget_scrollable_init(GtkScrollable *); G_DEFINE_TYPE_WITH_CODE(areaWidget, areaWidget, GTK_TYPE_DRAWING_AREA, G_IMPLEMENT_INTERFACE(GTK_TYPE_SCROLLABLE, areaWidget_scrollable_init)) -// TODO this really seems wrong +/* +lower and upper are the bounds of the adjusment, in units +step_increment is the number of units scrolled when using the arrow keys or the buttons on an old-style scrollbar +page_incremenet is the number of page_size units scrolled with the Page Up/Down keys +according to baedert, the other condition is that upper >= page_size, and the effect is that the largest possible value is upper - page_size +TODO so the below is wrong but I'm not sure what's right... +*/ static void updateScroll(areaWidget *a) { struct areaPrivate *ap = a->priv;