mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
Make step adjustment work on GTK 2.12
This commit is contained in:
parent
488c4038fb
commit
925a830f9e
@ -216,7 +216,11 @@ GtkAdjustment *nsgtk_layout_get_hadjustment(GtkLayout *layout)
|
||||
static void nsgtk_layout_set_adjustment_step_increment(GtkAdjustment *adj,
|
||||
int value)
|
||||
{
|
||||
#if GTK_CHECK_VERSION(2,14,0)
|
||||
gtk_adjustment_set_step_increment(adj, value);
|
||||
#else
|
||||
adj->step_increment = value;
|
||||
#endif
|
||||
}
|
||||
|
||||
void nsgtk_layout_set_hadjustment(GtkLayout *layout, GtkAdjustment *adj)
|
||||
|
Loading…
Reference in New Issue
Block a user