[gtk+] recorder: Put text color in the right row



commit ae549c6ce408e7c8455e9a8a9a065586f97ddb0b
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 28 18:41:39 2017 -0400

    recorder: Put text color in the right row
    
    It ended up in the wrong place by accident.

 gtk/inspector/recorder.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index bbbbc69..0da4f41 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -304,18 +304,16 @@ populate_render_node_properties (GtkListStore  *store,
         GString *s;
         int i;
 
-        surface = get_color_surface (color);
         desc = pango_font_describe (font);
         text = pango_font_description_to_string (desc);
         gtk_list_store_insert_with_values (store, NULL, -1,
                                            0, "Font",
                                            1, text,
-                                           2, TRUE,
-                                           3, surface,
+                                           2, FALSE,
+                                           3, NULL,
                                            -1);
         g_free (text);
         pango_font_description_free (desc);
-        cairo_surface_destroy (surface);
 
         s = g_string_sized_new (6 * glyphs->num_glyphs);
         for (i = 0; i < glyphs->num_glyphs; i++)
@@ -337,14 +335,16 @@ populate_render_node_properties (GtkListStore  *store,
                                            -1);
         g_free (text);
 
+        surface = get_color_surface (color);
         text = gdk_rgba_to_string (color);
         gtk_list_store_insert_with_values (store, NULL, -1,
                                            0, "Color",
                                            1, text,
-                                           2, FALSE,
-                                           3, NULL,
+                                           2, TRUE,
+                                           3, surface,
                                            -1);
         g_free (text);
+        cairo_surface_destroy (surface);
 
       }
       break;


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