summaryrefslogtreecommitdiff
path: root/gtk/gtkgestureclick.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-26 17:03:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-28 22:42:46 -0400
commit19b534f7de7298ae76b173b69e7855ed84a0eb09 (patch)
tree2f432a4764f3cb280fdc1f312f230cf9ee710660 /gtk/gtkgestureclick.c
parent910f23ea19369ead96b4c4c706203eac13985575 (diff)
downloadgtk+-19b534f7de7298ae76b173b69e7855ed84a0eb09.tar.gz
Avoid copying static debug strings
The g_source_set_name calls were showing up as a major source of strdups in our profiles. Avoid that by using new GLib api when available.
Diffstat (limited to 'gtk/gtkgestureclick.c')
-rw-r--r--gtk/gtkgestureclick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkgestureclick.c b/gtk/gtkgestureclick.c
index 67f1cd071b..30629eec33 100644
--- a/gtk/gtkgestureclick.c
+++ b/gtk/gtkgestureclick.c
@@ -146,7 +146,7 @@ _gtk_gesture_click_update_timeout (GtkGestureClick *gesture)
g_object_get (settings, "gtk-double-click-time", &double_click_time, NULL);
priv->double_click_timeout_id = g_timeout_add (double_click_time, _double_click_timeout_cb, gesture);
- g_source_set_name_by_id (priv->double_click_timeout_id, "[gtk] _double_click_timeout_cb");
+ gdk_source_set_static_name_by_id (priv->double_click_timeout_id, "[gtk] _double_click_timeout_cb");
}
static gboolean