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 | |
| 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')
| -rw-r--r-- | src/ui/widget/panel.cpp | 14 | ||||
| -rw-r--r-- | src/ui/widget/panel.h | 6 |
2 files changed, 18 insertions, 2 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 */ diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h index 40760a4a2..1062ee58e 100644 --- a/src/ui/widget/panel.h +++ b/src/ui/widget/panel.h @@ -38,8 +38,10 @@ namespace Widget { class Panel : public Gtk::VBox { public: + static void prep(); + virtual ~Panel(); - Panel(Glib::ustring const &label = "", gchar const *prefs_path = 0, + Panel(Glib::ustring const &label = "", gchar const *prefs_path = 0, int verb_num = 0, Glib::ustring const &apply_label = "", bool menu_desired = false); @@ -57,7 +59,7 @@ public: virtual void setDesktop(SPDesktop *desktop); SPDesktop *getDesktop() { return _desktop; } - + /** Signal accessors */ virtual sigc::signal<void, int> &signalResponse(); virtual sigc::signal<void> &signalPresent(); |
