[gtk+/wip/carlosg/event-as-object: 19/23] gdk/wayland: s/gdk_event_free/g_object_unref/
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/carlosg/event-as-object: 19/23] gdk/wayland: s/gdk_event_free/g_object_unref/
- Date: Tue, 31 Oct 2017 16:03:44 +0000 (UTC)
commit ba4d62fca12178fe7d3c763f29f6c05945388642
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 31 13:36:31 2017 +0100
gdk/wayland: s/gdk_event_free/g_object_unref/
gdk/wayland/gdkdevice-wayland.c | 2 +-
gdk/wayland/gdkdnd-wayland.c | 2 +-
gdk/wayland/gdkeventsource.c | 2 +-
gdk/wayland/gdkselection-wayland.c | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 20a7073..6831382 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1091,7 +1091,7 @@ emit_selection_owner_change (GdkWindow *window,
event->owner_change.selection_time = GDK_CURRENT_TIME;
gdk_event_put (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
static void
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c
index 1bba2ca..a615665 100644
--- a/gdk/wayland/gdkdnd-wayland.c
+++ b/gdk/wayland/gdkdnd-wayland.c
@@ -134,7 +134,7 @@ _gdk_wayland_drag_context_emit_event (GdkDragContext *context,
gdk_event_set_device (event, gdk_drag_context_get_device (context));
gdk_event_put (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
static GdkWindow *
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index 7016af9..688c090 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -123,7 +123,7 @@ gdk_event_source_dispatch (GSource *base,
{
_gdk_event_emit (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
gdk_threads_leave ();
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index f1fc583..3b2ac6e 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -138,7 +138,7 @@ selection_buffer_notify (SelectionBuffer *buffer)
event->selection.requestor = g_object_ref (l->data);
gdk_event_put (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
}
@@ -607,7 +607,7 @@ gdk_wayland_selection_emit_request (GdkWindow *window,
event->selection.requestor = g_object_ref (window);
gdk_event_put (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
static AsyncWriteData *
@@ -1275,7 +1275,7 @@ emit_empty_selection_notify (GdkWindow *requestor,
event->selection.requestor = g_object_ref (requestor);
gdk_event_put (event);
- gdk_event_free (event);
+ g_object_unref (event);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]