X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finkscape-stock.cpp;h=107d246b4f7c496b77a5cd7da4b0a0dbe99f8c9c;hb=8d358698ecbf192ba7c6dc05d4f7de7592753d9f;hp=16bf883d0816fe7055550b77d59b91ee86aa05ca;hpb=6b15695578f07a3f72c4c9475c1a261a3021472a;p=inkscape.git 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? */