From 67c6c28fe04237187645c55195012dbb831955e9 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 18 Jun 2008 09:39:24 +0000 Subject: deprecate GdkDestroyNotify. 2008-06-18 Michael Natterer * gdk/gdk.h: deprecate GdkDestroyNotify. * gdk/gdkevents.c * gdk/gdktypes.h * gdk/x11/gdkevents-x11.c * gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g. svn path=/trunk/; revision=20449 --- gdk/gdk.h | 2 +- gdk/gdkevents.c | 4 ++-- gdk/gdktypes.h | 4 ++++ gdk/x11/gdkevents-x11.c | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'gdk') diff --git a/gdk/gdk.h b/gdk/gdk.h index b81d48839a..008713d2ac 100644 --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -102,7 +102,7 @@ gint gdk_input_add_full (gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data, - GdkDestroyNotify destroy); + GDestroyNotify destroy); #endif /* !GDK_DISABLE_DEPRECATED || GTK_COMPILATION */ #ifndef GDK_DISABLE_DEPRECATED gint gdk_input_add (gint source, diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index bc0e62a42d..adc6a1b84c 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -37,7 +37,7 @@ struct _GdkIOClosure { GdkInputFunction function; GdkInputCondition condition; - GdkDestroyNotify notify; + GDestroyNotify notify; gpointer data; }; @@ -1020,7 +1020,7 @@ gdk_input_add_full (gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data, - GdkDestroyNotify destroy) + GDestroyNotify destroy) { guint result; GdkIOClosure *closure = g_new (GdkIOClosure, 1); diff --git a/gdk/gdktypes.h b/gdk/gdktypes.h index 06a7aa0627..ac8e4431d7 100644 --- a/gdk/gdktypes.h +++ b/gdk/gdktypes.h @@ -179,8 +179,12 @@ typedef void (*GdkInputFunction) (gpointer data, gint source, GdkInputCondition condition); +#ifndef GDK_DISABLE_DEPRECATED + typedef void (*GdkDestroyNotify) (gpointer data); +#endif /* GDK_DISABLE_DEPRECATED */ + struct _GdkPoint { gint x; diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index f43a02ea62..500b0b444e 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -72,7 +72,7 @@ struct _GdkIOClosure { GdkInputFunction function; GdkInputCondition condition; - GdkDestroyNotify notify; + GDestroyNotify notify; gpointer data; }; -- cgit v1.2.1