More area work.

This commit is contained in:
Pietro Gagliardi 2015-09-05 19:07:56 -04:00
parent 6db1bf7923
commit 22d690d535
1 changed files with 7 additions and 1 deletions

View File

@ -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;