summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2018-11-08 18:36:43 +0000
committerJabiertxof <jabier.arraiza@marker.es>2018-11-09 10:44:37 +0000
commitc8a3d0ab459a5b1e7a467ef7dd65e6549ecf42c8 (patch)
tree7f878835a44ebf821ab47fb1b405b4eb7575d194 /src/ui
parentThis improve symbolic icon rendering moving it to CSS only. There is places i... (diff)
downloadinkscape-c8a3d0ab459a5b1e7a467ef7dd65e6549ecf42c8.tar.gz
inkscape-c8a3d0ab459a5b1e7a467ef7dd65e6549ecf42c8.zip
Fixing symbols icon size
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/symbols.cpp6
-rw-r--r--src/ui/dialog/symbols.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp
index d94ebc5b7..0141529a7 100644
--- a/src/ui/dialog/symbols.cpp
+++ b/src/ui/dialog/symbols.cpp
@@ -222,7 +222,11 @@ SymbolsDialog::SymbolsDialog( gchar const* prefsPath ) :
overlay_opacity->set_halign(Gtk::ALIGN_START );
overlay_opacity->set_valign(Gtk::ALIGN_START );
//No results
- overlay_icon = sp_get_icon_image("searching", 110);
+ iconsize = Gtk::IconSize().from_name(Glib::ustring("ICON_SIZE_DIALOG_EXTRA"));
+ if (!iconsize) {
+ iconsize = Gtk::IconSize().register_new(Glib::ustring("ICON_SIZE_DIALOG_EXTRA"), 110, 110);
+ }
+ overlay_icon = sp_get_icon_image("searching", iconsize);
overlay_icon->set_name("iconinverse");
overlay_icon->set_halign(Gtk::ALIGN_CENTER );
overlay_icon->set_valign(Gtk::ALIGN_START );
diff --git a/src/ui/dialog/symbols.h b/src/ui/dialog/symbols.h
index d4a26ee14..ab5453d19 100644
--- a/src/ui/dialog/symbols.h
+++ b/src/ui/dialog/symbols.h
@@ -146,6 +146,7 @@ private:
Gtk::ScrolledWindow *scroller;
Gtk::ToggleButton* fit_symbol;
Gtk::IconSize iconsize;
+ Gtk::IconSize iconsize;
void setTargetDesktop(SPDesktop *desktop);
SPDesktop* current_desktop;
DesktopTracker desk_track;