[gnome-maps] utils: Fix run-time icon warning



commit d1de1072491937374e0bfd76c0dad7f4a396f8ce
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Mon Jan 11 10:11:10 2016 +0100

    utils: Fix run-time icon warning
    
    In newer versions of gtk+, gtk_icon_theme_lookup_by_gicon_for_scale()
    will warn if somebody uses GTK_ICON_LOOKUP_GENERIC_FALLBACK with
    functions that don't support it.
    
    The warning looks like:
      (org.gnome.Maps:13949): Gtk-WARNING **: (gtkicontheme.c:5432):
      gtk_icon_theme_lookup_by_gicon_for_scale: runtime check failed:
      ((flags & GTK_ICON_LOOKUP_GENERIC_FALLBACK) == 0)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760444

 src/utils.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index d55bdb2..c67a594 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -334,8 +334,7 @@ function _get_soup_session() {
 
 function _load_themed_icon(icon, size, loadCompleteCallback) {
     let theme = Gtk.IconTheme.get_default();
-    let flags = Gtk.IconLookupFlags.GENERIC_FALLBACK;
-    let info = theme.lookup_by_gicon(icon, size, flags);
+    let info = theme.lookup_by_gicon(icon, size, 0);
 
     try {
         let pixbuf = info.load_icon();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]