2007-06-24  Loic Minier  <lool@dooz.org>
    
    	* gtk/Makefile.am (gtk_private_h_sources, gtk_semi_private_h_sources):
    	export gtkquery.h and gtksearchengine.h as semi-private
    	* gtk/gtkquery.h: add GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED #ifdef guard
    	* gtk/gtksearchengine.h: add GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED #ifdef
    	guard

2007-02-07  Kristian Rietveld  <kris@imendio.com>
    
    	* gtk/gtkfilechooserutils.[ch]
    	(hildon_gtk_file_chooser_install_properties): conditionalize with
    	MAEMO_CHANGES, port over doc comment.

2006-12-04  Tommi Komulainen  <tommi.komulainen@nokia.com>
    
    	Export enough symbols for implementing GtkFileChooser interface
    	outside gtk.
    
    	* gtk/gtk.symbols: add hildon_gtk_file_chooser_install_properties
    	* gtk/Makefile.am (INCLUDES): add -DGTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
    	(gtk_private_h_sources, gtk_semi_private_h_sources): export
    	gtkfilesystemmodel.h, gtkfilechooserprivate.h, and
    	gtkfilechooserutils.h as semi-private
    	* gtk/gtkfilechooserutils.c
    	(hildon_gtk_file_chooser_install_properties): add exported version of
    	_gtk_file_chooser_install_properties
    	* gtk/gtkfilesystemmodel.h: add GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
    	#ifdef guard
    	* gtk/gtkfilechooserprivate.h: add GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
    	#ifdef guard
    	* gtk/gtkfilechooserutils.h: add GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
    	#ifdef guard, declare hildon_gtk_file_chooser_install_properties
    
    	* tests/autotestfilechooser.c: build with
    	GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
Index: b/gtk/Makefile.am
===================================================================
--- a/gtk/Makefile.am	2010-04-10 14:52:04.441943282 +0200
+++ b/gtk/Makefile.am	2010-04-10 14:52:08.761942152 +0200
@@ -52,6 +52,8 @@
 	-I$(top_srcdir)/gdk				\
 	-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf	\
 	-DGDK_DISABLE_DEPRECATED			\
+	-DMAEMO_CHANGES					\
+	-DGTK_FILE_CHOOSER_ENABLE_UNSUPPORTED		\
 	-DGTK_DISABLE_DEPRECATED			\
 	-DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED		\
 	-DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED		\
@@ -360,12 +362,16 @@
 # Installed header files without compatibility guarantees
 # that are not included in gtk/gtk.h
 gtk_semi_private_h_sources =    \
-	gtktextlayout.h
+	gtktextlayout.h         \
+	gtkfilesystem.h		\
+	gtkfilesystemmodel.h	\
+	gtkfilechooserprivate.h	\
+	gtkfilechooserutils.h	\
+	gtkquery.h		\
+	gtksearchengine.h
 
 # GTK+ header files that don't get installed
 gtk_private_h_sources =		\
-	gtkquery.h		\
-	gtksearchengine.h	\
 	gtksearchenginesimple.h	\
 	gtkdndcursors.h		\
 	gtkentryprivate.h	\
@@ -374,11 +380,7 @@
 	gtkfilechooserdefault.h	\
 	gtkfilechooserembed.h	\
 	gtkfilechooserentry.h	\
-	gtkfilechooserprivate.h	\
 	gtkfilechoosersettings.h \
-	gtkfilechooserutils.h	\
-	gtkfilesystem.h		\
-	gtkfilesystemmodel.h	\
 	gtkiconcache.h		\
 	gtkintl.h		\
 	gtkkeyhash.h		\
Index: b/gtk/gtk.symbols
===================================================================
--- a/gtk/gtk.symbols	2010-04-10 14:52:04.489943535 +0200
+++ b/gtk/gtk.symbols	2010-04-10 14:52:08.765946852 +0200
@@ -1633,6 +1633,12 @@
 #endif
 #endif
 
+#if IN_HEADER(__GTK_FILE_CHOOSER_UTILS_H__)
+#if IN_FILE(__GTK_FILE_CHOOSER_UTILS_C__)
+hildon_gtk_file_chooser_install_properties
+#endif
+#endif
+
 #if IN_HEADER(__GTK_FILE_CHOOSER_WIDGET_H__)
 #if IN_FILE(__GTK_FILE_CHOOSER_WIDGET_C__)
 gtk_file_chooser_widget_get_type G_GNUC_CONST
Index: b/gtk/gtkfilechooserprivate.h
===================================================================
--- a/gtk/gtkfilechooserprivate.h	2010-04-10 14:52:04.461944715 +0200
+++ b/gtk/gtkfilechooserprivate.h	2010-04-10 14:52:08.765946852 +0200
@@ -21,6 +21,14 @@
 #ifndef __GTK_FILE_CHOOSER_PRIVATE_H__
 #define __GTK_FILE_CHOOSER_PRIVATE_H__
 
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkFileChooser implementations; no stability guarantees 
+ * are made at this point
+ */
+#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
+#error "gtkfilechooserprivate.h is not supported API for general use"
+#endif
+
 #include "gtkfilechooser.h"
 #include "gtkfilesystem.h"
 #include "gtkfilesystemmodel.h"
Index: b/gtk/gtkfilechooserutils.c
===================================================================
--- a/gtk/gtkfilechooserutils.c	2010-04-10 14:52:04.469943779 +0200
+++ b/gtk/gtkfilechooserutils.c	2010-04-10 14:52:08.765946852 +0200
@@ -122,6 +122,22 @@
 				    "create-folders");
 }
 
+#ifdef MAEMO_CHANGES
+/**
+ * hildon_gtk_file_chooser_install_properties:
+ *
+ * Exactly the same as the private _gtk_file_chooser_install_properties()
+ * but exported for hildon-fm.
+ *
+ * Since: maemo 2.0
+ */
+void
+hildon_gtk_file_chooser_install_properties (GObjectClass *klass)
+{
+  _gtk_file_chooser_install_properties (klass);
+}
+#endif /* MAEMO_CHANGES */
+
 /**
  * _gtk_file_chooser_delegate_iface_init:
  * @iface: a #GtkFileChoserIface structure
@@ -363,3 +379,6 @@
   g_signal_emit_by_name (data, "confirm-overwrite", &conf);
   return conf;
 }
+
+#define __GTK_FILE_CHOOSER_UTILS_C__
+#include "gtkaliasdef.c"
Index: b/gtk/gtkfilechooserutils.h
===================================================================
--- a/gtk/gtkfilechooserutils.h	2010-04-10 14:52:04.429939517 +0200
+++ b/gtk/gtkfilechooserutils.h	2010-04-10 14:52:08.765946852 +0200
@@ -22,6 +22,14 @@
 #ifndef __GTK_FILE_CHOOSER_UTILS_H__
 #define __GTK_FILE_CHOOSER_UTILS_H__
 
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkFileChooser implementations; no stability guarantees 
+ * are made at this point
+ */
+#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
+#error "gtkfilechooserutils.h is not supported API for general use"
+#endif
+
 #include "gtkfilechooserprivate.h"
 
 G_BEGIN_DECLS
@@ -46,6 +54,9 @@
 } GtkFileChooserProp;
 
 void _gtk_file_chooser_install_properties (GObjectClass *klass);
+#ifdef MAEMO_CHANGES
+void hildon_gtk_file_chooser_install_properties (GObjectClass *klass);
+#endif /* MAEMO_CHANGES */
 
 void _gtk_file_chooser_delegate_iface_init (GtkFileChooserIface *iface);
 void _gtk_file_chooser_set_delegate        (GtkFileChooser *receiver,
Index: b/gtk/gtkfilesystemmodel.h
===================================================================
--- a/gtk/gtkfilesystemmodel.h	2010-04-10 14:52:04.525944493 +0200
+++ b/gtk/gtkfilesystemmodel.h	2010-04-10 14:52:08.765946852 +0200
@@ -21,6 +21,10 @@
 #ifndef __GTK_FILE_SYSTEM_MODEL_H__
 #define __GTK_FILE_SYSTEM_MODEL_H__
 
+#ifndef GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED
+#error "GtkFileSystemModel is not supported API for general use"
+#endif
+
 #include <gio/gio.h>
 #include <gtk/gtkfilefilter.h>
 #include <gtk/gtktreemodel.h>
Index: b/gtk/gtkquery.h
===================================================================
--- a/gtk/gtkquery.h	2010-04-10 14:52:04.409943955 +0200
+++ b/gtk/gtkquery.h	2010-04-10 14:52:08.765946852 +0200
@@ -23,6 +23,14 @@
 #ifndef __GTK_QUERY_H__
 #define __GTK_QUERY_H__
 
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkFileChooser implementations; no stability guarantees 
+ * are made at this point
+ */
+#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
+#error "gtkfilechooserprivate.h is not supported API for general use"
+#endif
+
 #include <glib-object.h>
 
 G_BEGIN_DECLS
Index: b/gtk/gtksearchengine.h
===================================================================
--- a/gtk/gtksearchengine.h	2010-04-10 14:52:04.501945345 +0200
+++ b/gtk/gtksearchengine.h	2010-04-10 14:52:08.765946852 +0200
@@ -23,6 +23,14 @@
 #ifndef __GTK_SEARCH_ENGINE_H__
 #define __GTK_SEARCH_ENGINE_H__
 
+/* This is a "semi-private" header; it is meant only for
+ * alternate GtkFileChooser implementations; no stability guarantees 
+ * are made at this point
+ */
+#ifndef GTK_FILE_CHOOSER_ENABLE_UNSUPPORTED
+#error "gtkfilechooserprivate.h is not supported API for general use"
+#endif
+
 #include "gtkquery.h"
 
 G_BEGIN_DECLS
