summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkframeclockidle.c2
-rw-r--r--gdk/wayland/gdkdevice-wayland.c3
-rw-r--r--gdk/x11/gdkapplaunchcontext-x11.c8
3 files changed, 11 insertions, 2 deletions
diff --git a/gdk/gdkframeclockidle.c b/gdk/gdkframeclockidle.c
index b4ef050a3e..c90bd09543 100644
--- a/gdk/gdkframeclockidle.c
+++ b/gdk/gdkframeclockidle.c
@@ -243,6 +243,7 @@ maybe_start_idle (GdkFrameClockIdle *clock_idle)
gdk_frame_clock_flush_idle,
g_object_ref (clock_idle),
(GDestroyNotify) g_object_unref);
+ g_source_set_name_by_id (priv->flush_idle_id, "[gtk+] gdk_frame_clock_flush_idle");
}
if (!priv->in_paint_idle &&
@@ -253,6 +254,7 @@ maybe_start_idle (GdkFrameClockIdle *clock_idle)
gdk_frame_clock_paint_idle,
g_object_ref (clock_idle),
(GDestroyNotify) g_object_unref);
+ g_source_set_name_by_id (priv->paint_idle_id, "[gtk+] gdk_frame_clock_paint_idle");
}
}
}
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 68bfcac9e4..67aae7eeba 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -188,6 +188,7 @@ gdk_wayland_device_update_window_cursor (GdkWaylandDeviceData *wd)
id = g_timeout_add (next_image_delay,
(GSourceFunc)gdk_wayland_device_update_window_cursor,
wd);
+ g_source_set_name_by_id (id, "[gtk+] gdk_wayland_device_update_window_cursor");
wd->cursor_timeout_id = id;
wd->cursor_image_index = next_image_index;
@@ -1112,10 +1113,12 @@ deliver_key_event (GdkWaylandDeviceData *device,
device->repeat_timer =
gdk_threads_add_timeout (delay, keyboard_repeat, device);
+ g_source_set_name_by_id (device->repeat_timer, "[gtk+] keyboard_repeat");
return TRUE;
case 2:
device->repeat_timer =
gdk_threads_add_timeout (interval, keyboard_repeat, device);
+ g_source_set_name_by_id (device->repeat_timer, "[gtk+] keyboard_repeat");
return FALSE;
default:
return TRUE;
diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c
index 6aa1711e57..18a3e7e686 100644
--- a/gdk/x11/gdkapplaunchcontext-x11.c
+++ b/gdk/x11/gdkapplaunchcontext-x11.c
@@ -215,8 +215,10 @@ startup_timeout (void *data)
if (std->contexts == NULL)
std->timeout_id = 0;
- else
+ else {
std->timeout_id = g_timeout_add_seconds ((min_timeout + 500)/1000, startup_timeout, std);
+ g_source_set_name_by_id (std->timeout_id, "[gtk+] startup_timeout");
+ }
/* always remove this one, but we may have reinstalled another one. */
return G_SOURCE_REMOVE;
@@ -249,9 +251,11 @@ add_startup_timeout (GdkScreen *screen,
data->contexts = g_slist_prepend (data->contexts, sn_data);
- if (data->timeout_id == 0)
+ if (data->timeout_id == 0) {
data->timeout_id = g_timeout_add_seconds (STARTUP_TIMEOUT_LENGTH_SECONDS,
startup_timeout, data);
+ g_source_set_name_by_id (data->timeout_id, "[gtk+] startup_timeout");
+ }
}