From e2ef39af06a4ad8fdea30809d3ceeda8580e4d7b Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Mon, 18 Feb 2008 09:25:27 +0000 Subject: Fixing preview/swatch sizes. (bzr r4765) --- src/ui/widget/panel.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ui/widget/panel.cpp') 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(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 */ -- cgit v1.2.3