ui/gtk/range.c

changeset 121
1cc365c34125
parent 118
bb21210e9cac
child 140
c03c338a7dcf
equal deleted inserted replaced
120:49bc645df8b7 121:1cc365c34125
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);

mercurial