From: ishmal Date: Mon, 8 Sep 2008 15:36:52 +0000 (+0000) Subject: add version check for new api X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e62828c890e859345c8d643780b12d3ede7f3bb;p=inkscape.git add version check for new api --- 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) {