Merge branch 'matthiasc/for-main' into 'main'
Add more names to sources See merge request GNOME/gtk!5064
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "filetransferportalprivate.h"
|
||||
#include "gdktexture.h"
|
||||
#include "gdkrgbaprivate.h"
|
||||
#include "gdkprivate.h"
|
||||
#include "loaders/gdkpngprivate.h"
|
||||
#include "loaders/gdktiffprivate.h"
|
||||
|
||||
@@ -354,12 +355,14 @@ gdk_content_deserializer_return_success (GdkContentDeserializer *deserializer)
|
||||
{
|
||||
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 */
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "loaders/gdktiffprivate.h"
|
||||
#include "loaders/gdkjpegprivate.h"
|
||||
#include "gdkmemorytextureprivate.h"
|
||||
#include "gdkprivate.h"
|
||||
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#include <string.h>
|
||||
@@ -360,12 +361,14 @@ gdk_content_serializer_return_success (GdkContentSerializer *serializer)
|
||||
{
|
||||
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 */
|
||||
}
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ get_sleep_serial (void)
|
||||
{
|
||||
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);
|
||||
|
||||
@@ -1623,8 +1623,8 @@ gdk_surface_thaw_updates (GdkSurface *surface)
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2779,9 +2779,8 @@ gdk_surface_queue_set_is_mapped (GdkSurface *surface,
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6668,6 +6668,7 @@ search_start_query (GtkFileChooserWidget *impl,
|
||||
|
||||
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 ();
|
||||
|
||||
@@ -328,6 +328,7 @@ gtk_sort_list_model_start_sorting (GtkSortListModel *self,
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -187,6 +187,7 @@ recompute_trash_state (GtkTrashMonitor *monitor)
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -110,6 +110,7 @@ gtk_video_reveal_controls (GtkVideo *self)
|
||||
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
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "gtksnapshot.h"
|
||||
#include "gtkrendernodepaintableprivate.h"
|
||||
#include "gtkwidgetprivate.h"
|
||||
#include "gtkprivate.h"
|
||||
|
||||
/**
|
||||
* GtkWidgetPaintable:
|
||||
@@ -383,6 +384,7 @@ gtk_widget_paintable_update_image (GtkWidgetPaintable *self)
|
||||
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);
|
||||
|
||||
@@ -6001,7 +6001,10 @@ gtk_window_set_focus_visible (GtkWindow *window,
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user