summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b57b8a1)
raw | patch | inline | side by side (parent: b57b8a1)
author | ishmal <ishmal@users.sourceforge.net> | |
Mon, 8 Sep 2008 15:36:52 +0000 (15:36 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Mon, 8 Sep 2008 15:36:52 +0000 (15:36 +0000) |
src/widgets/sp-color-slider.cpp | patch | blob | history |
index 9b1f475fb9cb5d73675f0540bd10e4851164edca..bac3de0e05d18cd4c99293dd5df7f0c24c39eff0 100644 (file)
@@ -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) {