summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-07-26 17:39:35 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-07-26 17:39:35 +0000
commitda89f855b5f8a2d10c7bb59e47356042d5b33f37 (patch)
treeef477d5442197da85d23ffd7696670da0849832e /src/ui/dialog/inkscape-preferences.cpp
parentmeaningful limits (diff)
downloadinkscape-da89f855b5f8a2d10c7bb59e47356042d5b33f37.tar.gz
inkscape-da89f855b5f8a2d10c7bb59e47356042d5b33f37.zip
add style selector for tweak tool
(bzr r6423)
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index a33d79bfd..956083a40 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -306,11 +306,12 @@ void StyleFromSelectionToTool(gchar const *prefs_path, StyleSwatch *swatch)
}
}
-void InkscapePreferences::AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path)
+void InkscapePreferences::AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path, const gchar* banner)
{
-
-
- p.add_group_header( _("Create new objects with:"));
+ if (banner)
+ p.add_group_header(banner);
+ else
+ p.add_group_header( _("Create new objects with:"));
PrefRadioButton* current = Gtk::manage( new PrefRadioButton);
current->init ( _("Last used style"), prefs_path, "usecurrent", 1, true, 0);
p.add_line( true, "", *current, "",
@@ -404,6 +405,7 @@ void InkscapePreferences::initPageTools()
//Tweak
this->AddPage(_page_tweak, _("Tweak"), iter_tools, PREFS_PAGE_TOOLS_NODE);
+ this->AddNewObjectsStyle(_page_tweak, "tools.tweak", _("Paint objects with:"));
AddSelcueCheckbox(_page_tweak, "tools.tweak", true);
AddGradientCheckbox(_page_tweak, "tools.tweak", false);