summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-19 02:48:33 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-19 02:48:33 +0000
commite399f5cabc2a4ec7ef739cabfbc9b8284307ba32 (patch)
treed40b85940ea96b79616d0bd477d0033ab1b0f465 /src/ui
parentFix for 643150 : Auto-palette swatches duplicated on copy and paste (diff)
downloadinkscape-e399f5cabc2a4ec7ef739cabfbc9b8284307ba32.tar.gz
inkscape-e399f5cabc2a4ec7ef739cabfbc9b8284307ba32.zip
Fix for 509891 : User defined linear gradient angle
(bzr r11678)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp5
-rw-r--r--src/ui/dialog/inkscape-preferences.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 7ee2aa444..9182aaad1 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -478,6 +478,11 @@ void InkscapePreferences::initPageTools()
_page_gradient.add_line( false, "", _misc_gradienteditor, "",
_("When on, the Gradient Edit button in the Fill & Stroke dialog will show the legacy Gradient Editor dialog, when off the Gradient Tool will be used"), true);
+ _misc_gradientangle.init("/dialogs/gradienteditor/angle", -359, 359, 1, 90, 0, false, false);
+ _page_gradient.add_line( false, _("Linear gradient _angle:"), _misc_gradientangle, "",
+ _("Default angle of new linear gradients in degrees (clockwise from horizontal"), false);
+
+
//Dropper
this->AddPage(_page_dropper, _("Dropper"), iter_tools, PREFS_PAGE_TOOLS_DROPPER);
this->AddSelcueCheckbox(_page_dropper, "/tools/dropper", true);
diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h
index 948a3f87b..f4bfe5565 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -300,6 +300,7 @@ protected:
UI::Widget::PrefCheckButton _misc_default_metadata;
UI::Widget::PrefCheckButton _misc_forkvectors;
UI::Widget::PrefCheckButton _misc_gradienteditor;
+ UI::Widget::PrefSpinButton _misc_gradientangle;
UI::Widget::PrefCheckButton _misc_scripts;
UI::Widget::PrefCheckButton _misc_namedicon_delay;