From f1f5ebf61299663821e7abae2b4c0899865e91b9 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Mon, 8 Sep 2008 15:36:52 +0000 Subject: add version check for new api (bzr r6782) --- src/widgets/sp-color-slider.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/widgets/sp-color-slider.cpp b/src/widgets/sp-color-slider.cpp index 9b1f475fb..bac3de0e0 100644 --- a/src/widgets/sp-color-slider.cpp +++ b/src/widgets/sp-color-slider.cpp @@ -331,10 +331,13 @@ sp_color_slider_set_adjustment (SPColorSlider *slider, GtkAdjustment *adjustment if (!adjustment) { adjustment = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.0, 0.0); - } else { + } +#if GTK_CHECK_VERSION (2,14,0) + else { gtk_adjustment_set_page_increment(adjustment, 0.0); gtk_adjustment_set_page_size(adjustment, 0.0); } +#endif if (slider->adjustment != adjustment) { if (slider->adjustment) { -- cgit v1.2.3