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,
|
static void nsgtk_layout_set_adjustment_step_increment(GtkAdjustment *adj,
|
||||||
int value)
|
int value)
|
||||||
{
|
{
|
||||||
|
#if GTK_CHECK_VERSION(2,14,0)
|
||||||
gtk_adjustment_set_step_increment(adj, value);
|
gtk_adjustment_set_step_increment(adj, value);
|
||||||
|
#else
|
||||||
|
adj->step_increment = value;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void nsgtk_layout_set_hadjustment(GtkLayout *layout, GtkAdjustment *adj)
|
void nsgtk_layout_set_hadjustment(GtkLayout *layout, GtkAdjustment *adj)
|
||||||
|
|
Loading…
Reference in New Issue