[gtk+/treeview-refactor: 255/257] Deprecate GtkCallbackMarshal and GtkFunction
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor: 255/257] Deprecate GtkCallbackMarshal and GtkFunction
- Date: Tue, 16 Nov 2010 07:19:29 +0000 (UTC)
commit d5eee0d1bd55562e241ee7551ee2cb9e2f261984
Author: Javier Jardón <jjardon gnome org>
Date: Tue Oct 19 11:47:27 2010 +0200
Deprecate GtkCallbackMarshal and GtkFunction
As they're only used by already deprecated API
https://bugzilla.gnome.org/show_bug.cgi?id=629955
gtk/gtktypeutils.h | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h
index 1221a04..15c749d 100644
--- a/gtk/gtktypeutils.h
+++ b/gtk/gtktypeutils.h
@@ -41,6 +41,7 @@ G_BEGIN_DECLS
#define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ())
GType gtk_identifier_get_type (void) G_GNUC_CONST;
+#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
/* --- typedefs --- */
/* here we come with some necessary forward declarations for structures and
* provide some fundamental function signatures
@@ -54,6 +55,8 @@ typedef struct _GtkArg GtkArg;
* Defines a function pointer.
*
* Returns: #gint
+ *
+ * Deprecated: 2.24: Use GSourceFunc() instead.
*/
typedef gboolean (*GtkFunction) (gpointer data);
@@ -65,19 +68,14 @@ typedef gboolean (*GtkFunction) (gpointer data);
* @args: #GtkArg*
*
* Defines a function pointer.
+ *
+ * Deprecated: 2.24:
*/
typedef void (*GtkCallbackMarshal) (GObject *object,
gpointer data,
guint n_args,
GtkArg *args);
-/* This used to be defined in gtkitemfactory.h, but moved over here after
- * the complete deprecation of that header
- */
-typedef gchar * (*GtkTranslateFunc) (const gchar *path,
- gpointer func_data);
-
-#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
/**
* GtkArg:
*
@@ -118,7 +116,14 @@ struct _GtkArg
} signal_data;
} d;
};
-#endif /* GTK_COMPILATION */
+#endif /* GTK_DISABLE_DEPRECATED */
+
+/* This used to be defined in gtkitemfactory.h, but moved over here after
+ * the complete deprecation of that header
+ */
+typedef gchar * (*GtkTranslateFunc) (const gchar *path,
+ gpointer func_data);
+
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]