Code

Attempt to fix the 245 floor / 255 page size adjustment problem.
authorishmal <ishmal@users.sourceforge.net>
Mon, 8 Sep 2008 07:52:36 +0000 (07:52 +0000)
committerishmal <ishmal@users.sourceforge.net>
Mon, 8 Sep 2008 07:52:36 +0000 (07:52 +0000)
src/widgets/sp-color-slider.cpp

index 4b7771e630b4c2397dfcc8315810828fb00f7bcd..9b1f475fb9cb5d73675f0540bd10e4851164edca 100644 (file)
@@ -330,8 +330,11 @@ sp_color_slider_set_adjustment (SPColorSlider *slider, GtkAdjustment *adjustment
        g_return_if_fail (SP_IS_COLOR_SLIDER (slider));
 
        if (!adjustment) {
-               adjustment = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.1, 0.1);
-       }
+               adjustment = (GtkAdjustment *) gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.0, 0.0);
+       } else {
+        gtk_adjustment_set_page_increment(adjustment, 0.0);
+        gtk_adjustment_set_page_size(adjustment, 0.0);
+    }
 
        if (slider->adjustment != adjustment) {
                if (slider->adjustment) {