summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.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 /gtk/gtkdnd.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 'gtk/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 25cc9e659d..1d70e56c86 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -847,7 +847,7 @@ gtk_drag_content_finalize (GObject *object)
GtkDragContent *content = GTK_DRAG_CONTENT (object);
g_clear_object (&content->widget);
- g_clear_pointer (&content->formats, (GDestroyNotify) gdk_content_formats_unref);
+ g_clear_pointer (&content->formats, gdk_content_formats_unref);
G_OBJECT_CLASS (gtk_drag_content_parent_class)->finalize (object);
}