From e1ced20bda4cd968ac8e73fb9b49b0085c5c3f21 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 14 Oct 2019 22:41:35 +0200 Subject: Fix a warning issue on theme change --- src/inkscape.cpp | 2 +- src/io/resource.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3