117 range->max = max; |
117 range->max = max; |
118 } |
118 } |
119 |
119 |
120 void ui_scrollbar_setextent(UiRange *range, double extent) { |
120 void ui_scrollbar_setextent(UiRange *range, double extent) { |
121 GtkAdjustment *a = gtk_range_get_adjustment(GTK_RANGE(range->obj)); |
121 GtkAdjustment *a = gtk_range_get_adjustment(GTK_RANGE(range->obj)); |
122 #ifdef ui_GTK2LEGACY |
122 #ifdef UI_GTK2LEGACY |
123 a->page_size = extent; |
123 a->page_size = extent; |
124 #else |
124 #else |
125 gtk_adjustment_set_page_size(a, extent); |
125 gtk_adjustment_set_page_size(a, extent); |
126 #endif |
126 #endif |
127 gtk_adjustment_changed(a); |
127 gtk_adjustment_changed(a); |