From 3bc497546a12e680187d2e5fa932668cf651a0ac Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 24 Dec 2018 18:59:51 +0100 Subject: Remove duplicate warnings of iconloader --- src/ui/icon-loader.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ui/icon-loader.cpp') diff --git a/src/ui/icon-loader.cpp b/src/ui/icon-loader.cpp index 9b64e64b5..a6011773d 100644 --- a/src/ui/icon-loader.cpp +++ b/src/ui/icon-loader.cpp @@ -54,7 +54,13 @@ Glib::RefPtr sp_get_icon_pixbuf(Glib::ustring icon_name, gint size) else { _icon_pixbuf = icon_theme->load_icon(icon_name, size, Gtk::ICON_LOOKUP_FORCE_SIZE); } - g_warning("Icon Loader using a future dead function in this icon: %s", icon_name.c_str()); + // g_warning("Icon Loader using a future dead function in this icon: %s", icon_name.c_str()); + // limit warns to 1 per run + static bool tmp_warn = true; + if (tmp_warn) { + tmp_warn = false; + g_warning("Icon Loader using a legacy function (sp_get_icon_pixbuf)."); + } } else { _icon_pixbuf = icon_theme->load_icon(icon_name, size, Gtk::ICON_LOOKUP_FORCE_SIZE); -- cgit v1.2.3