summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-14 20:41:35 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-14 21:43:46 +0000
commite1ced20bda4cd968ac8e73fb9b49b0085c5c3f21 (patch)
tree98de25e38b2ba5b6f6ed4962aaaef25afa642df1 /src
parentFix bug compiling (diff)
downloadinkscape-e1ced20bda4cd968ac8e73fb9b49b0085c5c3f21.tar.gz
inkscape-e1ced20bda4cd968ac8e73fb9b49b0085c5c3f21.zip
Fix a warning issue on theme change
Diffstat (limited to 'src')
-rw-r--r--src/inkscape.cpp2
-rw-r--r--src/io/resource.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 20d3a243d..04eb293c8 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -603,7 +603,7 @@ void Application::add_gtk_css()
Glib::ustring gtkthemename = prefs->getString("/theme/gtkTheme");
gtkthemename += ".css";
- style = get_filename(UIS, gtkthemename.c_str());
+ style = get_filename(UIS, gtkthemename.c_str(), false, true);
if (!style.empty()) {
if (themeprovider) {
Gtk::StyleContext::remove_provider_for_screen(screen, themeprovider);
diff --git a/src/io/resource.cpp b/src/io/resource.cpp
index a57d188e7..d7b9731e9 100644
--- a/src/io/resource.cpp
+++ b/src/io/resource.cpp
@@ -137,6 +137,8 @@ Glib::ustring get_path_ustring(Domain domain, Type type, char const *filename)
* filename - The filename to get, i.e. preferences.xml
* localized - Prefer a localized version of the file, i.e. default.de.svg instead of default.svg.
* (will use gettext to determine the preferred language of the user)
+ * silent - do not warn if file doesnt exist
+ *
*/
Glib::ustring get_filename(Type type, char const *filename, bool localized, bool silent)
{