From 08989785f2cdc3a4191b1d32914ee0a6e33af9d7 Mon Sep 17 00:00:00 2001 From: joncruz Date: Fri, 6 Mar 2009 07:33:49 +0000 Subject: [PATCH] Zero page size, to accommodate stricter GTK+ API. Fixes bug #338196. --- src/widgets/dash-selector.cpp | 2 +- src/widgets/stroke-style.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/dash-selector.cpp b/src/widgets/dash-selector.cpp index 594472f9c..3ac2bd4af 100644 --- a/src/widgets/dash-selector.cpp +++ b/src/widgets/dash-selector.cpp @@ -72,7 +72,7 @@ SPDashSelector::SPDashSelector() { } dash->set_menu(*m); - offset = new Gtk::Adjustment(0.0, 0.0, 10.0, 0.1, 1.0, 1.0); + offset = new Gtk::Adjustment(0.0, 0.0, 10.0, 0.1, 1.0, 0.0); Gtk::SpinButton *sb = new Gtk::SpinButton(*offset, 0.1, 2); tt->set_tip(*sb, _("Pattern offset")); diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp index b1678f266..bd0061796 100644 --- a/src/widgets/stroke-style.cpp +++ b/src/widgets/stroke-style.cpp @@ -1085,7 +1085,7 @@ sp_stroke_style_line_widget_new(void) // with it, the two remaining calls of stroke_average_width, allowing us to get rid of that // function in desktop-style. - a = new Gtk::Adjustment(1.0, 0.0, 1000.0, 0.1, 10.0, 10.0); + a = new Gtk::Adjustment(1.0, 0.0, 1000.0, 0.1, 10.0, 0.0); spw->set_data("width", a); sb = new Gtk::SpinButton(*a, 0.1, 3); tt->set_tip(*sb, _("Stroke width")); @@ -1155,7 +1155,7 @@ sp_stroke_style_line_widget_new(void) hb = spw_hbox(t, 3, 1, i); - a = new Gtk::Adjustment(4.0, 0.0, 100.0, 0.1, 10.0, 10.0); + a = new Gtk::Adjustment(4.0, 0.0, 100.0, 0.1, 10.0, 0.0); spw->set_data("miterlimit", a); sb = new Gtk::SpinButton(*a, 0.1, 2); -- 2.30.2