[gtk: 4/14] Use markf in one more place



commit 13eedf1a9ff75e7b587842389afce6d3e5651a9b
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Feb 12 10:40:26 2020 +0100

    Use markf in one more place

 gtk/gtkicontheme.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index b78de4635e..aec4b78b4a 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3606,11 +3606,7 @@ icon_ensure_texture__locked (GtkIconPaintable *icon,
   g_assert (icon->texture != NULL);
 
   if (gdk_profiler_is_running ())
-    {
-      char *message = g_strdup_printf ("%s size %d@%d", icon->filename, icon->desired_size, 
icon->desired_scale);
-      gdk_profiler_add_mark (before * 1000, (g_get_monotonic_time () - before) * 1000, in_thread ?  "icon 
load (thread)" : "icon load" , message);
-      g_free (message);
-    }
+    gdk_profiler_add_markf (before * 1000, (g_get_monotonic_time () - before) * 1000, in_thread ?  "icon 
load (thread)" : "icon load" , "%s size %d@%d", icon->filename, icon->desired_size, icon->desired_scale);
 }
 
 static GdkTexture *


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