diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2018-11-14 19:54:20 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2018-11-14 19:54:20 +0000 |
| commit | 12feb8a6bf9fd5949f1b6b184dd3d32bb34e1882 (patch) | |
| tree | 221ec775e43659300fb708721e120e3b9c9d0808 /src/inkscape.cpp | |
| parent | Use better syntax, clean up before reloading and call SPObjet release (diff) | |
| download | inkscape-12feb8a6bf9fd5949f1b6b184dd3d32bb34e1882.tar.gz inkscape-12feb8a6bf9fd5949f1b6b184dd3d32bb34e1882.zip | |
Fix bug forcing symbolic system icons in hicolor theme
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index d01b53e57..7d19554c9 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -520,8 +520,12 @@ Application::Application(const char* argv, bool use_gui) : prefs->setString("/theme/gtkTheme", Glib::ustring(gtkThemeName)); } - if (prefs->getString("/theme/iconTheme") != "") { - g_object_set(settings, "gtk-icon-theme-name", prefs->getString("/theme/iconTheme").c_str(), NULL); + Glib::ustring themeiconname = prefs->getString("/theme/iconTheme"); + if (themeiconname != "") { + if (themeiconname == "hicolor") { + themeiconname = "Adwaita"; + } + g_object_set(settings, "gtk-icon-theme-name", themeiconname.c_str(), NULL); } else { Glib::ustring defaulticontheme = prefs->getString("/theme/defaultIconTheme"); |
