summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa91692)
raw | patch | inline | side by side (parent: aa91692)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 26 Jul 2008 17:39:35 +0000 (17:39 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sat, 26 Jul 2008 17:39:35 +0000 (17:39 +0000) |
src/ui/dialog/inkscape-preferences.cpp | patch | blob | history | |
src/ui/dialog/inkscape-preferences.h | patch | blob | history |
index a33d79bfda59f113c1a93a2e47c2d0520bb2e871..956083a40e01747e8f59e439fc3d42f103999266 100644 (file)
}
}
-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, "",
//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);
index 3a0a300a2683d9045483e0f431ff5bbf6dc44d43..b29004983d1a2516071e43e9ad77eb7ecd71649d 100644 (file)
static void AddGradientCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value);
static void AddConvertGuidesCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value);
static void AddDotSizeSpinbutton(DialogPage& p, const std::string& prefs_path, double def_value);
- static void AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path);
+ static void AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path, const gchar* banner = NULL);
void on_pagelist_selection_changed();
void initPageMouse();