[connections/collection-view-child-papercuts: 3/3] collection-view-child: Use GLib.Source.{REMOVE/CONTINUE} macro




commit f0f59d1ce7e1e4b2df6efd98ecf560e64547bbb0
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Aug 17 15:03:32 2021 +0200

    collection-view-child: Use GLib.Source.{REMOVE/CONTINUE} macro
    
    For clarity.

 src/collection-view-child.vala | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/collection-view-child.vala b/src/collection-view-child.vala
index 5101382..1d4c0c5 100644
--- a/src/collection-view-child.vala
+++ b/src/collection-view-child.vala
@@ -52,18 +52,17 @@ namespace Connections {
                 if (!connection.connected) {
                     thumbnail.set_from_icon_name ("org.gnome.Connections-symbolic",
                                                   Gtk.IconSize.LARGE_TOOLBAR);
-                    return false;
+                    return Source.REMOVE;
                 }
 
                 if (connection.thumbnail == null)
-                    return false;
+                    return Source.REMOVE;
 
                 var pixbuf = connection.thumbnail.scale_simple (180, 134,
                                                                 Gdk.InterpType.BILINEAR);
                 thumbnail.set_from_pixbuf (pixbuf);
 
-                return true;
-
+                return Source.CONTINUE;
             });
         }
 


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