diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-02-18 09:25:27 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-02-18 09:25:27 +0000 |
| commit | e2ef39af06a4ad8fdea30809d3ceeda8580e4d7b (patch) | |
| tree | 92eb8ee65ad6d0dd9b2a4329fbf2978fff912a9e /src/ui/widget/panel.cpp | |
| parent | a bunch of updates (diff) | |
| download | inkscape-e2ef39af06a4ad8fdea30809d3ceeda8580e4d7b.tar.gz inkscape-e2ef39af06a4ad8fdea30809d3ceeda8580e4d7b.zip | |
Fixing preview/swatch sizes.
(bzr r4765)
Diffstat (limited to 'src/ui/widget/panel.cpp')
| -rw-r--r-- | src/ui/widget/panel.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp index a591e7664..9b9b20530 100644 --- a/src/ui/widget/panel.cpp +++ b/src/ui/widget/panel.cpp @@ -27,6 +27,7 @@ #include "prefs-utils.h" #include "desktop-handles.h" #include "inkscape.h" +#include "dialogs/eek-preview.h" namespace Inkscape { namespace UI { @@ -37,6 +38,19 @@ static const int PANEL_SETTING_MODE = 1; static const int PANEL_SETTING_WRAP = 2; static const int PANEL_SETTING_NEXTFREE = 3; + +void Panel::prep() { + GtkIconSize sizes[] = { + static_cast<GtkIconSize>(Inkscape::ICON_SIZE_DECORATION), + GTK_ICON_SIZE_MENU, + GTK_ICON_SIZE_SMALL_TOOLBAR, + GTK_ICON_SIZE_BUTTON, + GTK_ICON_SIZE_DND, // Not used by options, but included to make the last size larger + GTK_ICON_SIZE_DIALOG + }; + eek_preview_set_size_mappings( G_N_ELEMENTS(sizes), sizes ); +} + /** * Construct a Panel */ |
