diff --git a/ChangeLog b/ChangeLog index f0aae5a02e..e8ed0aa4e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2008-03-06 Johan Dahlin + + * gtk/gtkitemfactory.h: + * gtk/gtktypeutils.h: + Move GtkTranslateFunc to gtktypeutils.h so we can completely + deprecate gtkitemfactory.h. + + * gtk/gtkactiongroup.h: + * gtk/gtkstock.h: + Do not include gtkitemfactory.h directly, instead include gtktypeutils.h + + * README.in: + Add a note describing this slight incompatible change + 2008-03-06 Johan Dahlin * gtk/gtkpreview.h: Avoid double-deprecation. diff --git a/README.in b/README.in index ffb8d14f02..0dd988215b 100644 --- a/README.in +++ b/README.in @@ -27,6 +27,14 @@ Installation See the file 'INSTALL' +Release notes for 2.14 +====================== + +* gtkitemfactory.h is now completely deprecated. + gtkactiongroup.h and gtkstock.h is no longer included it's header, + this might break application using gtk_item_factory_* symbols without + including gtkitemfactory.h which has never been supported. + Release notes for 2.12 ====================== diff --git a/gtk/gtkactiongroup.h b/gtk/gtkactiongroup.h index 0f5df5942d..73e9c43e79 100644 --- a/gtk/gtkactiongroup.h +++ b/gtk/gtkactiongroup.h @@ -31,7 +31,7 @@ #define __GTK_ACTION_GROUP_H__ #include -#include /* for GtkTranslateFunc */ +#include /* for GtkTranslateFunc */ G_BEGIN_DECLS diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h index 6f3c438b78..bf301f9cce 100644 --- a/gtk/gtkitemfactory.h +++ b/gtk/gtkitemfactory.h @@ -27,6 +27,8 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ +#ifndef GTK_DISABLE_DEPRECATED + #ifndef __GTK_ITEM_FACTORY_H__ #define __GTK_ITEM_FACTORY_H__ @@ -35,11 +37,6 @@ G_BEGIN_DECLS -typedef gchar * (*GtkTranslateFunc) (const gchar *path, - gpointer func_data); - -#if !defined (GTK_DISABLE_DEPRECATED) - typedef void (*GtkPrintFunc) (gpointer func_data, const gchar *str); /* We use () here to mean unspecified arguments. This is deprecated diff --git a/gtk/gtkstock.h b/gtk/gtkstock.h index f4d0e3ac32..52571477ed 100644 --- a/gtk/gtkstock.h +++ b/gtk/gtkstock.h @@ -29,7 +29,7 @@ #include -#include /* for GtkTranslateFunc */ +#include /* for GtkTranslateFunc */ G_BEGIN_DECLS diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h index 90b97ab180..e0fd6ab933 100644 --- a/gtk/gtktypeutils.h +++ b/gtk/gtktypeutils.h @@ -122,6 +122,13 @@ typedef void (*GtkCallbackMarshal) (GtkObject *object, guint n_args, GtkArg *args); typedef void (*GtkSignalFunc) (void); + +/* 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); + #define GTK_SIGNAL_FUNC(f) ((GtkSignalFunc) (f)) #ifndef GTK_DISABLE_DEPRECATED