In gtk3 upper value of adjustment can't be smaller than page_size.
Otherwise strange things happens ;-)

svn path=/trunk/; revision=43856
This commit is contained in:
Jakub Zawadzki 2012-07-20 11:59:20 +00:00
parent 0441109c33
commit 642861a4e1
1 changed files with 5 additions and 0 deletions

View File

@ -921,6 +921,11 @@ _gtk_adjustment_configure(GtkAdjustment *adj,
gtk_adjustment_changed(adj);
}
#elif GTK_CHECK_VERSION(3, 0, 0)
#define _gtk_adjustment_configure(adj, val, low, up, step, page, size) \
gtk_adjustment_configure(adj, val, low, MAX((up), (size)), step, page, size)
#else
#define _gtk_adjustment_configure(adj, val, low, up, step, page, size) \