diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-12-24 17:59:51 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-12-24 17:59:51 +0000 |
| commit | 3bc497546a12e680187d2e5fa932668cf651a0ac (patch) | |
| tree | fae81c63c7e95d682aa7f5bee008ca637f756f5a /src/ui/icon-loader.cpp | |
| parent | Remove XML comments that are causing problems with 0.92.x. (diff) | |
| download | inkscape-3bc497546a12e680187d2e5fa932668cf651a0ac.tar.gz inkscape-3bc497546a12e680187d2e5fa932668cf651a0ac.zip | |
Remove duplicate warnings of iconloader
Diffstat (limited to 'src/ui/icon-loader.cpp')
| -rw-r--r-- | src/ui/icon-loader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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<Gdk::Pixbuf> 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); |
