Make step adjustment work on GTK 2.12

This commit is contained in:
John-Mark Bell 2012-11-05 08:59:29 +00:00
parent 488c4038fb
commit 925a830f9e

View File

@ -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)