From 0ddbdf18a2cfcf54f591b1372bb3eb9dde9728e2 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Thu, 8 Nov 2018 19:36:18 +0100 Subject: This improve symbolic icon rendering moving it to CSS only. There is places in the UI whar we claim for a Pixbuf. Currently its not possible render them as symbolic without the previos hack --- src/widgets/toolbox.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/widgets/toolbox.cpp') diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 670693bc4..41b237b29 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -137,6 +137,18 @@ GtkIconSize ToolboxFactory::prefToSize( Glib::ustring const &path, int base ) { return sizeChoices[index]; } +Gtk::IconSize ToolboxFactory::prefToSize_mm( Glib::ustring const &path, int base ) { + static Gtk::IconSize sizeChoices[] = { + Gtk::ICON_SIZE_LARGE_TOOLBAR, + Gtk::ICON_SIZE_SMALL_TOOLBAR, + Gtk::ICON_SIZE_MENU, + Gtk::ICON_SIZE_DIALOG + }; + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + int index = prefs->getIntLimited( path, base, 0, G_N_ELEMENTS(sizeChoices) ); + return sizeChoices[index]; +} + static struct { gchar const *type_name; gchar const *data_name; -- cgit v1.2.3