diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-07-25 10:00:09 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-07-25 10:05:39 +0300 |
commit | 6adaf7c33d9a0d59b8b17bcd860957ef94a5c134 (patch) | |
tree | 0398d18e3c329f76f1a6d14ee3e688939d414b6d /gdk/wayland/gdkdrag-wayland.c | |
parent | 95a4eff6baddb174ef5ff8384250bd8c1e6e1f32 (diff) | |
download | gtk+-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/gdkdrag-wayland.c')
-rw-r--r-- | gdk/wayland/gdkdrag-wayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/wayland/gdkdrag-wayland.c b/gdk/wayland/gdkdrag-wayland.c index 6876bd1e95..b163a17139 100644 --- a/gdk/wayland/gdkdrag-wayland.c +++ b/gdk/wayland/gdkdrag-wayland.c @@ -78,8 +78,8 @@ gdk_wayland_drag_finalize (GObject *object) gdk_drag_set_cursor (drag, NULL); - g_clear_pointer (&wayland_drag->data_source, (GDestroyNotify) wl_data_source_destroy); - g_clear_pointer (&wayland_drag->offer, (GDestroyNotify) wl_data_offer_destroy); + g_clear_pointer (&wayland_drag->data_source, wl_data_source_destroy); + g_clear_pointer (&wayland_drag->offer, wl_data_offer_destroy); dnd_surface = wayland_drag->dnd_surface; |