[gnome-documents] documents: Fix run-time warning



commit fc36cbb0c48b8a754658cfcd4f97a381150d086a
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 24 14:00:15 2015 +0100

    documents: Fix run-time 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.
    
    See 8ec2362d in GTK+.
    
    (org.gnome.Books:7975): Gtk-WARNING **: (gtkicontheme.c:5440):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=758599

 src/documents.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 1f5cbb5..b3c8829 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -331,8 +331,7 @@ const DocCommon = new Lang.Class({
         let iconInfo =
             Gtk.IconTheme.get_default().lookup_by_gicon_for_scale(icon, Utils.getIconSize(),
                                                                   Application.application.getScaleFactor(),
-                                                                  Gtk.IconLookupFlags.FORCE_SIZE |
-                                                                  Gtk.IconLookupFlags.GENERIC_FALLBACK);
+                                                                  Gtk.IconLookupFlags.FORCE_SIZE);
 
         let pixbuf = null;
         if (iconInfo != null) {


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