[gtk+] Add "extern C" declarations around AppChooser headers.



commit b91549a38a0bd5b70436d79eb0148d6db5b62e3b
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Feb 10 10:02:06 2011 +0100

    Add "extern C" declarations around AppChooser headers.
    
    This is necessary to allow linking from code compiled as C++.

 gtk/gtkappchooserbutton.h |    3 +++
 gtk/gtkappchooserdialog.h |    4 ++++
 gtk/gtkappchooserwidget.h |    4 ++++
 3 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkappchooserbutton.h b/gtk/gtkappchooserbutton.h
index a5e9ed1..dd9e9cf 100644
--- a/gtk/gtkappchooserbutton.h
+++ b/gtk/gtkappchooserbutton.h
@@ -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__ */
diff --git a/gtk/gtkappchooserdialog.h b/gtk/gtkappchooserdialog.h
index 30f092e..ba73cad 100644
--- a/gtk/gtkappchooserdialog.h
+++ b/gtk/gtkappchooserdialog.h
@@ -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__ */
diff --git a/gtk/gtkappchooserwidget.h b/gtk/gtkappchooserwidget.h
index e125417..e1c9a86 100644
--- a/gtk/gtkappchooserwidget.h
+++ b/gtk/gtkappchooserwidget.h
@@ -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__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]