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/inkscape-stock.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/inkscape-stock.cpp')
| -rw-r--r-- | src/inkscape-stock.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inkscape-stock.cpp b/src/inkscape-stock.cpp index 16bf883d0..107d246b4 100644 --- a/src/inkscape-stock.cpp +++ b/src/inkscape-stock.cpp @@ -23,6 +23,8 @@ #include "gtk/gtkiconfactory.h" +#include "widgets/icon.h" +#include "ui/widget/panel.h" void inkscape_gtk_stock_init() { @@ -31,6 +33,12 @@ inkscape_gtk_stock_init() { if (stock_initialized) return; + // Ensure icon internal sizes get set up: + sp_icon_get_phys_size(GTK_ICON_SIZE_MENU); + + // And also prepare the swatches. + Inkscape::UI::Widget::Panel::prep(); + GtkIconFactory *icon_factory = gtk_icon_factory_new(); /* todo: Should we simply remove this file now that we're no longer * calling gtk_icon_factory_add here? */ |
