summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkclipboard-wayland.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2018-07-25 10:00:09 +0300
committerErnestas Kulik <ernestask@gnome.org>2018-07-25 10:05:39 +0300
commit6adaf7c33d9a0d59b8b17bcd860957ef94a5c134 (patch)
tree0398d18e3c329f76f1a6d14ee3e688939d414b6d /gdk/wayland/gdkclipboard-wayland.c
parent95a4eff6baddb174ef5ff8384250bd8c1e6e1f32 (diff)
downloadgtk+-g-clear-pointer-propagate.tar.gz
Remove GDestroyNotify casts in g_clear_pointer() usesg-clear-pointer-propagate
GLib master propagates argument types in g_clear_pointer(), which causes the usual function pointer casts to GDestroyNotify to trip compiler warnings. Additionally, this commit changes some cleanup functions where appropriate (wl_data_source_destroy -> gtk_primary_selection_source_destroy for struct gtk_primary_selection_source).
Diffstat (limited to 'gdk/wayland/gdkclipboard-wayland.c')
-rw-r--r--gdk/wayland/gdkclipboard-wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/wayland/gdkclipboard-wayland.c b/gdk/wayland/gdkclipboard-wayland.c
index 25671ff670..bed53a71aa 100644
--- a/gdk/wayland/gdkclipboard-wayland.c
+++ b/gdk/wayland/gdkclipboard-wayland.c
@@ -52,13 +52,13 @@ static void
gdk_wayland_clipboard_discard_offer (GdkWaylandClipboard *cb)
{
g_clear_pointer (&cb->offer_formats, gdk_content_formats_unref);
- g_clear_pointer (&cb->offer, (GDestroyNotify) wl_data_offer_destroy);
+ g_clear_pointer (&cb->offer, wl_data_offer_destroy);
}
static void
gdk_wayland_clipboard_discard_source (GdkWaylandClipboard *cb)
{
- g_clear_pointer (&cb->source, (GDestroyNotify) wl_data_source_destroy);
+ g_clear_pointer (&cb->source, wl_data_source_destroy);
}
static void