diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-04-25 08:07:57 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-04-25 08:07:57 +0000 |
| commit | a8bc70dad12976b156c6d6a2795c350cf0680a0e (patch) | |
| tree | ea8dbeeca3019eb8c498dd7a232f4ae83a0fa047 /src/ui/dialog | |
| parent | Left out a comment. sorry. (diff) | |
| download | inkscape-a8bc70dad12976b156c6d6a2795c350cf0680a0e.tar.gz inkscape-a8bc70dad12976b156c6d6a2795c350cf0680a0e.zip | |
Improved options for toolbar icon sizes, especially for Ubuntu. Fixes bug #221676.
(bzr r5514)
Diffstat (limited to 'src/ui/dialog')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 20 | ||||
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.h | 5 |
2 files changed, 17 insertions, 8 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index 6b9cafcc9..fbcdc665b 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -908,13 +908,21 @@ void InkscapePreferences::initPageMisc() // consider moving this to an UI tab: - _misc_small_toolbar.init( _("Make the commands toolbar icons smaller"), "toolbox", "small", true); - _page_misc.add_line( false, "", _misc_small_toolbar, "", - _("Make the commands toolbar use the 'secondary' toolbar size (requires restart)"), true); - _misc_small_tools.init( _("Make the main toolbar icons smaller"), "toolbox.tools", "small", true); - _page_misc.add_line( false, "", _misc_small_tools, "", - _("Make the main tools use the 'secondary' toolbar size (requires restart)"), true); + Glib::ustring sizeLabels[] = {_("Normal"), _("Medium"), _("Small")}; + int sizeValues[] = {0, 1, 2}; + + _misc_small_toolbar.init( "toolbox", "small", sizeLabels, sizeValues, G_N_ELEMENTS(sizeLabels), 0 ); + _page_misc.add_line( false, _("Commands toolbar icon size"), _misc_small_toolbar, "", + _("Set the size for the commands toolbar to use (requires restart)"), false); + + _misc_small_secondary.init( "toolbox", "secondary", sizeLabels, sizeValues, G_N_ELEMENTS(sizeLabels), 1 ); + _page_misc.add_line( false, _("Secondary toolbar icon size"), _misc_small_secondary, "", + _("Set the size for the secondary toolbar to use (requires restart)"), false); + + _misc_small_tools.init( "toolbox.tools", "small", sizeLabels, sizeValues, G_N_ELEMENTS(sizeLabels), 0 ); + _page_misc.add_line( false, _("Main toolbar icon size"), _misc_small_tools, "", + _("Set the size for the main tools to use (requires restart)"), false); _misc_recent.init("options.maxrecentdocuments", "value", 0.0, 1000.0, 1.0, 1.0, 1.0, true, false); _page_misc.add_line( false, _("Maximum number of recent documents:"), _misc_recent, "", diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index 38ff1fa31..6e8b6d000 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -161,8 +161,9 @@ protected: PrefSpinButton _importexport_export, _misc_recent, _misc_simpl; PrefCheckButton _misc_comment, _misc_forkvectors, _misc_scripts; - PrefCheckButton _misc_small_toolbar; - PrefCheckButton _misc_small_tools; + PrefCombo _misc_small_toolbar; + PrefCombo _misc_small_secondary; + PrefCombo _misc_small_tools; PrefCombo _misc_overs_bitmap; Gtk::ComboBoxText _cms_display_profile; |
