GtkLayout and {h,v}adjustment->step_increment
- From: Stephen Bach <9sjb qlink queensu ca>
- To: gtk-list gnome org
- Subject: GtkLayout and {h,v}adjustment->step_increment
- Date: Sat, 25 Sep 2004 11:54:24 -0400
Just a quick question. The gtk_layout_size_allocate() function seems to set
the page_increment fields of its layout's GtkAdjustments, but not the
step_increment fields.
So in, say, gtk_set_hadjustment_values() and gtk_set_vadjustment_values()
(called in gtk_viewport_size_allocate()) of gtkviewport.c:
...
hadjustment->page_size = view_allocation.width;
hadjustment->step_increment = view_allocation.width * 0.1;
hadjustment->page_increment = view_allocation.width * 0.9;
hadjustment->lower = 0;
...
vadjustment->page_size = view_allocation.height;
vadjustment->step_increment = view_allocation.height * 0.1;
vadjustment->page_increment = view_allocation.height * 0.9;
vadjustment->lower = 0;
...
But in gtk_layout_size_allocate() of gtklayout.c:
...
layout->hadjustment->page_size = allocation->width;
layout->hadjustment->page_increment = allocation->width * 0.9;
layout->hadjustment->lower = 0;
...
layout->vadjustment->page_size = allocation->height;
layout->vadjustment->page_increment = allocation->height * 0.9;
layout->vadjustment->lower = 0;
...
This means that clicking the steppers in the scrollbars for the layout do
nothing. In my program I've set step_increment manually by connecting to the
allocate signal of the layout, but I'm wondering what the reason is for the
missing functionality.
Thanks,
Stephen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]