diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-09-08 15:36:52 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-09-08 15:36:52 +0000 |
| commit | f1f5ebf61299663821e7abae2b4c0899865e91b9 (patch) | |
| tree | 8f6208f89f80488419eea73509a1e507c9ac0722 /src/widgets | |
| parent | Unselet item in geometry tool when the user clicked into empty space (diff) | |
| download | inkscape-f1f5ebf61299663821e7abae2b4c0899865e91b9.tar.gz inkscape-f1f5ebf61299663821e7abae2b4c0899865e91b9.zip | |
add version check for new api
(bzr r6782)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/sp-color-slider.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |
