[yocto] [matchbox-desktop-2][PATCH 07/16] fixup initial port

Jussi Kukkonen jussi.kukkonen at intel.com
Thu Apr 28 06:03:00 PDT 2016


From: Ross Burton <ross.burton at intel.com>

---
 src/desktop.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/desktop.c b/src/desktop.c
index fbecd20..b7858b7 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -47,9 +47,9 @@ on_item_added (TakuMenu *menu, TakuMenuItem *item, gpointer null)
   GtkWidget *tile;
 
   tile = taku_launcher_tile_new_from_item (item);
-  
-  if (GTK_IS_WIDGET (tile))
-    gtk_container_add (GTK_CONTAINER (table), tile); 
+
+  if (tile)
+    gtk_container_add (GTK_CONTAINER (table), tile);
 }
 
 static void
@@ -116,7 +116,7 @@ load_items (TakuMenu *menu)
     if (!l->data)
       continue;
     tile = taku_launcher_tile_new_from_item (l->data);
-    if (GTK_IS_WIDGET (tile))
+    if (tile)
       gtk_container_add (GTK_CONTAINER (table), tile);
   }
 
-- 
2.8.1




More information about the yocto mailing list