[gtk/matthiasc/for-master: 3/7] x11: Don't use g_object_unref on events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 3/7] x11: Don't use g_object_unref on events
- Date: Sat, 28 Mar 2020 19:05:50 +0000 (UTC)
commit 9ccd51468207e403a3747ebccb8aab36242461d4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 28 14:28:36 2020 -0400
x11: Don't use g_object_unref on events
Events are not object anymore.
gdk/x11/gdkeventsource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkeventsource.c b/gdk/x11/gdkeventsource.c
index da9ac28979..3e4523077f 100644
--- a/gdk/x11/gdkeventsource.c
+++ b/gdk/x11/gdkeventsource.c
@@ -120,7 +120,7 @@ handle_focus_change (GdkEvent *event)
gdk_event_get_source_device (event),
focus_in);
gdk_display_put_event (gdk_event_get_display (event), focus_event);
- g_object_unref (focus_event);
+ gdk_event_unref (focus_event);
}
}
@@ -209,7 +209,7 @@ handle_touch_synthetic_crossing (GdkEvent *event)
if (crossing)
{
gdk_display_put_event (gdk_device_get_display (device), crossing);
- g_object_unref (crossing);
+ gdk_event_unref (crossing);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]