[gtk/wip/otte/listmodel: 10/22] inspector: Add an icon to the render node list



commit ab68d6d9d8320a7ada742b718399a0ce1e51569a
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 5 06:34:03 2018 +0200

    inspector: Add an icon to the render node list

 gtk/inspector/recorder.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index c136758af0..8c27ccc8d8 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -345,6 +345,11 @@ create_widget_for_render_node (gpointer row_item,
     }
   gtk_container_add (GTK_CONTAINER (box), child);
 
+  /* icon */
+  child = gtk_image_new_from_paintable (paintable);
+  gtk_container_add (GTK_CONTAINER (box), child);
+
+  /* name */
   name = node_name (node);
   child = gtk_label_new (name);
   g_free (name);


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