diff options
Diffstat (limited to 'src/ui/widget')
| -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(); |
