summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-15 15:07:24 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-21 00:47:53 -0500
commitc343031a0eb6e3980b6a35e398296b6d29684817 (patch)
tree96c0c47e795d227d79a9ad1fd96bebe511a81d2f /gdk/gdkdisplay.c
parent835556c2704247a01855027ce5706dc30ffabe8a (diff)
downloadgtk+-c343031a0eb6e3980b6a35e398296b6d29684817.tar.gz
Stop using g_object_ref/unref on events
Use gdk_event_ref/unref instead of g_object_ref/unref. Events will stop being object soon.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 5835b6c35a..8f9c176f7a 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -469,7 +469,7 @@ gdk_display_peek_event (GdkDisplay *display)
tmp_list = _gdk_event_queue_find_first (display);
if (tmp_list != NULL)
- return g_object_ref (tmp_list->data);
+ return gdk_event_ref (tmp_list->data);
return NULL;
}
@@ -489,7 +489,7 @@ gdk_display_put_event (GdkDisplay *display,
g_return_if_fail (GDK_IS_DISPLAY (display));
g_return_if_fail (event != NULL);
- _gdk_event_queue_append (display, g_object_ref ((GdkEvent *)event));
+ _gdk_event_queue_append (display, gdk_event_ref ((GdkEvent *)event));
}
static void