[gtk: 4/14] Use markf in one more place
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 4/14] Use markf in one more place
- Date: Wed, 12 Feb 2020 14:32:46 +0000 (UTC)
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]