Add "extern C" declarations around AppChooser headers.

This is necessary to allow linking from code compiled as C++.
This commit is contained in:
Murray Cumming 2011-02-10 10:02:06 +01:00
parent 3f1c95de8d
commit b91549a38a
3 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,8 @@
#include <gtk/gtkcombobox.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define GTK_TYPE_APP_CHOOSER_BUTTON (gtk_app_chooser_button_get_type ())
#define GTK_APP_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButton))
#define GTK_APP_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_BUTTON, GtkAppChooserButtonClass))
@ -79,5 +81,6 @@ void gtk_app_chooser_button_set_heading (GtkAppChooserButton *self
const gchar *
gtk_app_chooser_button_get_heading (GtkAppChooserButton *self);
G_END_DECLS
#endif /* __GTK_APP_CHOOSER_BUTTON_H__ */

View File

@ -34,6 +34,8 @@
#include <gtk/gtkdialog.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define GTK_TYPE_APP_CHOOSER_DIALOG (gtk_app_chooser_dialog_get_type ())
#define GTK_APP_CHOOSER_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialog))
#define GTK_APP_CHOOSER_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_DIALOG, GtkAppChooserDialogClass))
@ -73,4 +75,6 @@ void gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *
const gchar *heading);
const gchar * gtk_app_chooser_dialog_get_heading (GtkAppChooserDialog *self);
G_END_DECLS
#endif /* __GTK_APP_CHOOSER_DIALOG_H__ */

View File

@ -35,6 +35,8 @@
#include <gtk/gtkmenu.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define GTK_TYPE_APP_CHOOSER_WIDGET (gtk_app_chooser_widget_get_type ())
#define GTK_APP_CHOOSER_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidget))
#define GTK_APP_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_APP_CHOOSER_WIDGET, GtkAppChooserWidgetClass))
@ -98,4 +100,6 @@ void gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *
const gchar *text);
const gchar * gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self);
G_END_DECLS
#endif /* __GTK_APP_CHOOSER_WIDGET_H__ */