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



commit 515c36f17004fa040362c3e72b8be6db1ced91c7
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Nov 25 11:49:40 2015 +0100

    shellSearchProvider: 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+.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=758599

 src/shellSearchProvider.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/shellSearchProvider.js b/src/shellSearchProvider.js
index d4062f0..55784c8 100644
--- a/src/shellSearchProvider.js
+++ b/src/shellSearchProvider.js
@@ -158,9 +158,7 @@ const CreateCollectionIconJob = new Lang.Class({
 
         if (icon instanceof Gio.ThemedIcon) {
             let theme = Gtk.IconTheme.get_default();
-            let flags =
-                Gtk.IconLookupFlags.FORCE_SIZE |
-                Gtk.IconLookupFlags.GENERIC_FALLBACK;
+            let flags = Gtk.IconLookupFlags.FORCE_SIZE;
             let info =
                 theme.lookup_by_gicon(icon, _SHELL_SEARCH_ICON_SIZE,
                                       flags);


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