#include "filetransferportalprivate.h"
#include "gdktexture.h"
#include "gdkrgbaprivate.h"
+#include "gdkprivate.h"
#include "loaders/gdkpngprivate.h"
#include "loaders/gdktiffprivate.h"
{
g_return_if_fail (GDK_IS_CONTENT_DESERIALIZER (deserializer));
g_return_if_fail (!deserializer->returned);
+ guint source_id;
deserializer->returned = TRUE;
- g_idle_add_full (deserializer->priority,
- gdk_content_deserializer_emit_callback,
- deserializer,
- g_object_unref);
+ source_id = g_idle_add_full (deserializer->priority,
+ gdk_content_deserializer_emit_callback,
+ deserializer,
+ g_object_unref);
+ gdk_source_set_static_name_by_id (source_id, "[gtk] gdk_content_deserializer_emit_callback");
/* NB: the idle will destroy our reference */
}
#include "loaders/gdktiffprivate.h"
#include "loaders/gdkjpegprivate.h"
#include "gdkmemorytextureprivate.h"
+#include "gdkprivate.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <string.h>
{
g_return_if_fail (GDK_IS_CONTENT_SERIALIZER (serializer));
g_return_if_fail (!serializer->returned);
+ guint source_id;
serializer->returned = TRUE;
- g_idle_add_full (serializer->priority,
- gdk_content_serializer_emit_callback,
- serializer,
- g_object_unref);
+ source_id = g_idle_add_full (serializer->priority,
+ gdk_content_serializer_emit_callback,
+ serializer,
+ g_object_unref);
+ gdk_source_set_static_name_by_id (source_id, "[gtk] gdk_content_serializer_emit_callback");
/* NB: the idle will destroy our reference */
}
{
sleep_source = g_source_new (&sleep_source_funcs, sizeof (GSource));
+ g_source_set_static_name (sleep_source, "[gtk] sleep serial");
g_source_set_priority (sleep_source, G_PRIORITY_HIGH);
g_source_attach (sleep_source, NULL);
g_source_unref (sleep_source);
if (surface->request_motion && surface->request_motion_id == 0)
{
surface->request_motion_id =
- g_idle_add_full (GDK_PRIORITY_REDRAW + 20,
- request_motion_cb, surface, NULL);
+ g_idle_add_full (GDK_PRIORITY_REDRAW + 20, request_motion_cb, surface, NULL);
+ gdk_source_set_static_name_by_id (surface->request_motion_id, "[gtk] request_motion_cb");
}
}
}
g_return_if_fail (!surface->set_is_mapped_source_id);
surface->set_is_mapped_source_id =
- g_idle_add_full (G_PRIORITY_HIGH - 10,
- set_is_mapped_idle,
- surface, NULL);
+ g_idle_add_full (G_PRIORITY_HIGH - 10, set_is_mapped_idle, surface, NULL);
+ gdk_source_set_static_name_by_id (surface->set_is_mapped_source_id, "[gtk] set_is_mapped_idle");
}
}
set_busy_cursor (impl, TRUE);
impl->show_progress_timeout = g_timeout_add (1500, show_spinner, impl);
+ gdk_source_set_static_name_by_id (impl->show_progress_timeout, "[gtk] show_spinner");
if (impl->search_engine == NULL)
impl->search_engine = _gtk_search_engine_new ();
return FALSE;
self->sort_cb = g_idle_add (gtk_sort_list_model_sort_cb, self);
+ gdk_source_set_static_name_by_id (self->sort_cb, "[gtk] gtk_sort_list_model_sort_cb");
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_PENDING]);
return TRUE;
}
monitor->timeout_id = g_timeout_add_seconds (UPDATE_RATE_SECONDS,
recompute_trash_state_cb,
monitor);
+ gdk_source_set_static_name_by_id (monitor->timeout_id, "[gtk] recompute_trash_state_cb");
g_object_unref (file);
}
self->controls_hide_source = g_timeout_add (5 * 1000,
gtk_video_hide_controls,
self);
+ gdk_source_set_static_name_by_id (self->controls_hide_source, "[gtk] gtk_video_hide_controls");
}
static void
#include "gtksnapshot.h"
#include "gtkrendernodepaintableprivate.h"
#include "gtkwidgetprivate.h"
+#include "gtkprivate.h"
/**
* GtkWidgetPaintable:
gtk_widget_paintable_update_func,
self,
NULL);
+ gdk_source_set_static_name_by_id (self->pending_update_cb, "[gtk] gtk_widget_paintable_update_func");
}
pending_image = gtk_widget_paintable_snapshot_widget (self);
}
if (priv->focus_visible)
- priv->focus_visible_timeout = g_timeout_add_seconds (VISIBLE_FOCUS_DURATION, unset_focus_visible, window);
+ {
+ priv->focus_visible_timeout = g_timeout_add_seconds (VISIBLE_FOCUS_DURATION, unset_focus_visible, window);
+ gdk_source_set_static_name_by_id (priv->focus_visible_timeout, "[gtk] unset_focus_visible");
+ }
if (changed)
{