Fix up headerless symbols

Some symbols are exported from GTK+, but do not appear in any
headers. For these, use _GDK_EXTERN in the source file to make
sure they are exported.
This commit is contained in:
Matthias Clasen 2013-05-05 10:28:54 -04:00
parent 4cec2337ab
commit 7d8e755d16
4 changed files with 7 additions and 6 deletions

View File

@ -138,6 +138,7 @@
#define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ()) #define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ())
_GDK_EXTERN
GType gtk_identifier_get_type (void) G_GNUC_CONST; GType gtk_identifier_get_type (void) G_GNUC_CONST;

View File

@ -19,6 +19,9 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "config.h"
#include "gtkpathbar.h" #include "gtkpathbar.h"
#include "gtkcolorswatchprivate.h" #include "gtkcolorswatchprivate.h"
#include "gtkcolorplaneprivate.h" #include "gtkcolorplaneprivate.h"
@ -35,7 +38,7 @@ GType _gtk_scale_button_scale_get_type (void);
* and is used to ensure the private types for use in Glade while * and is used to ensure the private types for use in Glade while
* editing UI files that define GTK+'s various composite widget classes. * editing UI files that define GTK+'s various composite widget classes.
*/ */
void _GDK_EXTERN void
gtk_glade_catalog_init (const gchar *catalog_name) gtk_glade_catalog_init (const gchar *catalog_name)
{ {
g_type_ensure (GTK_TYPE_PATH_BAR); g_type_ensure (GTK_TYPE_PATH_BAR);

View File

@ -52,13 +52,9 @@
#include "gtkwin32themeprivate.h" #include "gtkwin32themeprivate.h"
#endif #endif
#undef GDK_DEPRECATED
#undef GDK_DEPRECATED_FOR
#define GDK_DEPRECATED
#define GDK_DEPRECATED_FOR(f)
#include "deprecated/gtkrc.h" #include "deprecated/gtkrc.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/** /**
* SECTION:gtksettings * SECTION:gtksettings

View File

@ -209,6 +209,7 @@ struct GtkThemingModuleClass
#define GTK_THEMING_MODULE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_THEMING_MODULE, GtkThemingModule)) #define GTK_THEMING_MODULE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_THEMING_MODULE, GtkThemingModule))
#define GTK_IS_THEMING_MODULE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_THEMING_MODULE)) #define GTK_IS_THEMING_MODULE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_THEMING_MODULE))
_GDK_EXTERN
GType gtk_theming_module_get_type (void); GType gtk_theming_module_get_type (void);
G_DEFINE_TYPE (GtkThemingModule, gtk_theming_module, G_TYPE_TYPE_MODULE); G_DEFINE_TYPE (GtkThemingModule, gtk_theming_module, G_TYPE_TYPE_MODULE);