[tepl/master.msvc: 4/9] tepl: Mark public symbols with _TEPL_EXTERN



commit f17e518f7bb0b744b2abde5822df36617b0166ae
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Apr 28 16:54:53 2020 +0800

    tepl: Mark public symbols with _TEPL_EXTERN
    
    This way, we can override _TEPL_EXTERN later so that we can use it to export
    symbols from the built library.

 tepl/tepl-abstract-factory.h            |  8 ++++++++
 tepl/tepl-application-window.h          |  9 +++++++++
 tepl/tepl-application.h                 | 12 ++++++++++++
 tepl/tepl-buffer.h                      | 12 ++++++++++++
 tepl/tepl-encoding.h                    | 14 ++++++++++++++
 tepl/tepl-file-loader.h                 | 14 ++++++++++++++
 tepl/tepl-file-saver.h                  | 17 +++++++++++++++++
 tepl/tepl-file.h                        | 15 +++++++++++++++
 tepl/tepl-fold-region.h                 |  8 ++++++++
 tepl/tepl-goto-line-bar.h               |  4 ++++
 tepl/tepl-gutter-renderer-folds.h       |  4 ++++
 tepl/tepl-info-bar.h                    | 11 +++++++++++
 tepl/tepl-init.h                        |  3 +++
 tepl/tepl-io-error-info-bars.h          |  4 ++++
 tepl/tepl-iter.h                        |  2 ++
 tepl/tepl-menu-shell.h                  |  2 ++
 tepl/tepl-metadata-manager.h            |  7 +++++++
 tepl/tepl-metadata.h                    |  5 +++++
 tepl/tepl-notebook.h                    |  3 +++
 tepl/tepl-panel.h                       |  9 +++++++++
 tepl/tepl-statusbar.h                   |  5 +++++
 tepl/tepl-style-scheme-chooser-widget.h |  5 +++++
 tepl/tepl-tab-group.h                   |  9 +++++++++
 tepl/tepl-tab-label.h                   |  4 ++++
 tepl/tepl-tab.h                         | 14 ++++++++++++++
 tepl/tepl-utils.h                       | 14 ++++++++++++++
 tepl/tepl-view.h                        | 13 +++++++++++++
 27 files changed, 227 insertions(+)
---
diff --git a/tepl/tepl-abstract-factory.h b/tepl/tepl-abstract-factory.h
index d58178f..f6f6623 100644
--- a/tepl/tepl-abstract-factory.h
+++ b/tepl/tepl-abstract-factory.h
@@ -83,22 +83,30 @@ struct _TeplAbstractFactoryClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                  tepl_abstract_factory_get_type                  (void);
 
+_TEPL_EXTERN
 void                   tepl_abstract_factory_set_singleton             (TeplAbstractFactory *factory);
 
+_TEPL_EXTERN
 TeplAbstractFactory *  tepl_abstract_factory_get_singleton             (void);
 
+_TEPL_EXTERN
 GtkApplicationWindow * tepl_abstract_factory_create_main_window        (TeplAbstractFactory *factory,
                                                                         GtkApplication      *app);
 
+_TEPL_EXTERN
 TeplTab *              tepl_abstract_factory_create_tab                (TeplAbstractFactory *factory);
 
+_TEPL_EXTERN
 GtkWidget *            tepl_abstract_factory_create_tab_label          (TeplAbstractFactory *factory,
                                                                         TeplTab             *tab);
 
+_TEPL_EXTERN
 TeplFile *             tepl_abstract_factory_create_file               (TeplAbstractFactory *factory);
 
+_TEPL_EXTERN
 GFile *                        tepl_abstract_factory_create_metadata_manager_file
                                                                        (TeplAbstractFactory *factory);
 
diff --git a/tepl/tepl-application-window.h b/tepl/tepl-application-window.h
index 9ece057..30536fa 100644
--- a/tepl/tepl-application-window.h
+++ b/tepl/tepl-application-window.h
@@ -54,24 +54,33 @@ struct _TeplApplicationWindowClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                  tepl_application_window_get_type                        (void) G_GNUC_CONST;
 
+_TEPL_EXTERN
 TeplApplicationWindow *        tepl_application_window_get_from_gtk_application_window (GtkApplicationWindow 
*gtk_window);
 
+_TEPL_EXTERN
 GtkApplicationWindow * tepl_application_window_get_application_window          (TeplApplicationWindow 
*tepl_window);
 
+_TEPL_EXTERN
 void                   tepl_application_window_set_tab_group                   (TeplApplicationWindow 
*tepl_window,
                                                                                 TeplTabGroup          
*tab_group);
 
+_TEPL_EXTERN
 gboolean               tepl_application_window_is_main_window                  (GtkApplicationWindow 
*gtk_window);
 
+_TEPL_EXTERN
 GtkWindowGroup *       tepl_application_window_get_window_group                (TeplApplicationWindow 
*tepl_window);
 
+_TEPL_EXTERN
 gboolean               tepl_application_window_get_handle_title                (TeplApplicationWindow 
*tepl_window);
 
+_TEPL_EXTERN
 void                   tepl_application_window_set_handle_title                (TeplApplicationWindow 
*tepl_window,
                                                                                 gboolean               
handle_title);
 
+_TEPL_EXTERN
 void                   tepl_application_window_open_file                       (TeplApplicationWindow 
*tepl_window,
                                                                                 GFile                 
*location,
                                                                                 gboolean               
jump_to);
diff --git a/tepl/tepl-application.h b/tepl/tepl-application.h
index c8e5d1a..4be4da2 100644
--- a/tepl/tepl-application.h
+++ b/tepl/tepl-application.h
@@ -26,6 +26,7 @@
 
 #include <gtk/gtk.h>
 #include <amtk/amtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -54,27 +55,38 @@ struct _TeplApplicationClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                  tepl_application_get_type                       (void) G_GNUC_CONST;
 
+_TEPL_EXTERN
 TeplApplication *      tepl_application_get_from_gtk_application       (GtkApplication *gtk_app);
 
+_TEPL_EXTERN
 TeplApplication *      tepl_application_get_default                    (void);
 
+_TEPL_EXTERN
 GtkApplication *       tepl_application_get_application                (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 AmtkActionInfoStore *  tepl_application_get_app_action_info_store      (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 AmtkActionInfoStore *  tepl_application_get_tepl_action_info_store     (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 GtkApplicationWindow * tepl_application_get_active_main_window         (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 void                   tepl_application_open_simple                    (TeplApplication *tepl_app,
                                                                         GFile           *file);
 
+_TEPL_EXTERN
 void                   tepl_application_handle_activate                (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 void                   tepl_application_handle_open                    (TeplApplication *tepl_app);
 
+_TEPL_EXTERN
 void                   tepl_application_handle_metadata                (TeplApplication *tepl_app);
 
 G_END_DECLS
diff --git a/tepl/tepl-buffer.h b/tepl/tepl-buffer.h
index e34574d..548ddd8 100644
--- a/tepl/tepl-buffer.h
+++ b/tepl/tepl-buffer.h
@@ -31,6 +31,7 @@
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_BUFFER (tepl_buffer_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplBuffer, tepl_buffer,
                          TEPL, BUFFER,
                          GtkSourceBuffer)
@@ -61,29 +62,40 @@ typedef enum _TeplSelectionType
        TEPL_SELECTION_TYPE_MULTIPLE_LINES
 } TeplSelectionType;
 
+_TEPL_EXTERN
 TeplBuffer *           tepl_buffer_new                         (void);
 
+_TEPL_EXTERN
 TeplFile *             tepl_buffer_get_file                    (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 TeplMetadata *         tepl_buffer_get_metadata                (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 void                   tepl_buffer_load_metadata_from_metadata_manager
                                                                (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 void                   tepl_buffer_save_metadata_into_metadata_manager
                                                                (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 gboolean               tepl_buffer_is_untouched                (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 gchar *                        tepl_buffer_get_short_title             (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 gchar *                        tepl_buffer_get_full_title              (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 gchar *                        tepl_buffer_get_style_scheme_id         (TeplBuffer *buffer);
 
+_TEPL_EXTERN
 void                   tepl_buffer_set_style_scheme_id         (TeplBuffer  *buffer,
                                                                 const gchar *style_scheme_id);
 
+_TEPL_EXTERN
 TeplSelectionType      tepl_buffer_get_selection_type          (TeplBuffer *buffer);
 
 G_GNUC_INTERNAL
diff --git a/tepl/tepl-encoding.h b/tepl/tepl-encoding.h
index f780331..49e5921 100644
--- a/tepl/tepl-encoding.h
+++ b/tepl/tepl-encoding.h
@@ -26,6 +26,7 @@
 #endif
 
 #include <glib-object.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -33,31 +34,44 @@ G_BEGIN_DECLS
 
 typedef struct _TeplEncoding TeplEncoding;
 
+_TEPL_EXTERN
 GType                  tepl_encoding_get_type                  (void) G_GNUC_CONST;
 
+_TEPL_EXTERN
 TeplEncoding *         tepl_encoding_new                       (const gchar *charset);
 
+_TEPL_EXTERN
 TeplEncoding *         tepl_encoding_new_utf8                  (void);
 
+_TEPL_EXTERN
 TeplEncoding *         tepl_encoding_new_from_locale           (void);
 
+_TEPL_EXTERN
 TeplEncoding *         tepl_encoding_copy                      (const TeplEncoding *enc);
 
+_TEPL_EXTERN
 void                   tepl_encoding_free                      (TeplEncoding *enc);
 
+_TEPL_EXTERN
 const gchar *          tepl_encoding_get_charset               (const TeplEncoding *enc);
 
+_TEPL_EXTERN
 const gchar *          tepl_encoding_get_name                  (const TeplEncoding *enc);
 
+_TEPL_EXTERN
 gchar *                        tepl_encoding_to_string                 (const TeplEncoding *enc);
 
+_TEPL_EXTERN
 gboolean               tepl_encoding_is_utf8                   (const TeplEncoding *enc);
 
+_TEPL_EXTERN
 gboolean               tepl_encoding_equals                    (const TeplEncoding *enc1,
                                                                 const TeplEncoding *enc2);
 
+_TEPL_EXTERN
 GSList *               tepl_encoding_get_all                   (void);
 
+_TEPL_EXTERN
 GSList *               tepl_encoding_get_default_candidates    (void);
 
 G_END_DECLS
diff --git a/tepl/tepl-file-loader.h b/tepl/tepl-file-loader.h
index 3f4aeee..b2fa905 100644
--- a/tepl/tepl-file-loader.h
+++ b/tepl/tepl-file-loader.h
@@ -32,6 +32,7 @@
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_FILE_LOADER (tepl_file_loader_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplFileLoader, tepl_file_loader,
                          TEPL, FILE_LOADER,
                          GObject)
@@ -61,27 +62,37 @@ struct _TeplFileLoaderClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GQuark                 tepl_file_loader_error_quark                            (void);
 
+_TEPL_EXTERN
 TeplFileLoader *       tepl_file_loader_new                                    (TeplBuffer *buffer,
                                                                                 TeplFile   *file);
 
+_TEPL_EXTERN
 TeplBuffer *           tepl_file_loader_get_buffer                             (TeplFileLoader *loader);
 
+_TEPL_EXTERN
 TeplFile *             tepl_file_loader_get_file                               (TeplFileLoader *loader);
 
+_TEPL_EXTERN
 GFile *                        tepl_file_loader_get_location                           (TeplFileLoader 
*loader);
 
+_TEPL_EXTERN
 gint64                 tepl_file_loader_get_max_size                           (TeplFileLoader *loader);
 
+_TEPL_EXTERN
 void                   tepl_file_loader_set_max_size                           (TeplFileLoader *loader,
                                                                                 gint64          max_size);
 
+_TEPL_EXTERN
 gint64                 tepl_file_loader_get_chunk_size                         (TeplFileLoader *loader);
 
+_TEPL_EXTERN
 void                   tepl_file_loader_set_chunk_size                         (TeplFileLoader *loader,
                                                                                 gint64          chunk_size);
 
+_TEPL_EXTERN
 void                   tepl_file_loader_load_async                             (TeplFileLoader        
*loader,
                                                                                 gint                   
io_priority,
                                                                                 GCancellable          
*cancellable,
@@ -91,12 +102,15 @@ void                       tepl_file_loader_load_async                             
(TeplFileLoader        *loader,
                                                                                 GAsyncReadyCallback    
callback,
                                                                                 gpointer               
user_data);
 
+_TEPL_EXTERN
 gboolean               tepl_file_loader_load_finish                            (TeplFileLoader  *loader,
                                                                                 GAsyncResult    *result,
                                                                                 GError         **error);
 
+_TEPL_EXTERN
 const TeplEncoding *   tepl_file_loader_get_encoding                           (TeplFileLoader *loader);
 
+_TEPL_EXTERN
 TeplNewlineType                tepl_file_loader_get_newline_type                       (TeplFileLoader 
*loader);
 
 G_END_DECLS
diff --git a/tepl/tepl-file-saver.h b/tepl/tepl-file-saver.h
index 160678f..51870c1 100644
--- a/tepl/tepl-file-saver.h
+++ b/tepl/tepl-file-saver.h
@@ -95,43 +95,59 @@ struct _TeplFileSaverClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                   tepl_file_saver_get_type               (void);
 
+_TEPL_EXTERN
 GQuark                  tepl_file_saver_error_quark            (void);
 
+_TEPL_EXTERN
 TeplFileSaver *                 tepl_file_saver_new                    (TeplBuffer *buffer,
                                                                 TeplFile   *file);
 
+_TEPL_EXTERN
 TeplFileSaver *                 tepl_file_saver_new_with_target        (TeplBuffer *buffer,
                                                                 TeplFile   *file,
                                                                 GFile      *target_location);
 
+_TEPL_EXTERN
 TeplBuffer *            tepl_file_saver_get_buffer             (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 TeplFile *              tepl_file_saver_get_file               (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 GFile *                         tepl_file_saver_get_location           (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 void                    tepl_file_saver_set_encoding           (TeplFileSaver      *saver,
                                                                 const TeplEncoding *encoding);
 
+_TEPL_EXTERN
 const TeplEncoding *    tepl_file_saver_get_encoding           (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 void                    tepl_file_saver_set_newline_type       (TeplFileSaver   *saver,
                                                                 TeplNewlineType  newline_type);
 
+_TEPL_EXTERN
 TeplNewlineType                 tepl_file_saver_get_newline_type       (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 void                    tepl_file_saver_set_compression_type   (TeplFileSaver       *saver,
                                                                 TeplCompressionType  compression_type);
 
+_TEPL_EXTERN
 TeplCompressionType     tepl_file_saver_get_compression_type   (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 void                    tepl_file_saver_set_flags              (TeplFileSaver      *saver,
                                                                 TeplFileSaverFlags  flags);
 
+_TEPL_EXTERN
 TeplFileSaverFlags      tepl_file_saver_get_flags              (TeplFileSaver *saver);
 
+_TEPL_EXTERN
 void                    tepl_file_saver_save_async             (TeplFileSaver         *saver,
                                                                 gint                   io_priority,
                                                                 GCancellable          *cancellable,
@@ -141,6 +157,7 @@ void                         tepl_file_saver_save_async             (TeplFileSaver        
 *saver,
                                                                 GAsyncReadyCallback    callback,
                                                                 gpointer               user_data);
 
+_TEPL_EXTERN
 gboolean                tepl_file_saver_save_finish            (TeplFileSaver  *saver,
                                                                 GAsyncResult   *result,
                                                                 GError        **error);
diff --git a/tepl/tepl-file.h b/tepl/tepl-file.h
index f1d4e52..673b03c 100644
--- a/tepl/tepl-file.h
+++ b/tepl/tepl-file.h
@@ -30,6 +30,7 @@
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_FILE (tepl_file_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplFile, tepl_file,
                          TEPL, FILE,
                          GObject)
@@ -96,36 +97,50 @@ typedef enum
        TEPL_COMPRESSION_TYPE_GZIP
 } TeplCompressionType;
 
+_TEPL_EXTERN
 TeplFile *             tepl_file_new                           (void);
 
+_TEPL_EXTERN
 GFile *                        tepl_file_get_location                  (TeplFile *file);
 
+_TEPL_EXTERN
 void                   tepl_file_set_location                  (TeplFile *file,
                                                                 GFile    *location);
 
+_TEPL_EXTERN
 const gchar *          tepl_file_get_short_name                (TeplFile *file);
 
+_TEPL_EXTERN
 const TeplEncoding *   tepl_file_get_encoding                  (TeplFile *file);
 
+_TEPL_EXTERN
 TeplNewlineType                tepl_file_get_newline_type              (TeplFile *file);
 
+_TEPL_EXTERN
 TeplCompressionType    tepl_file_get_compression_type          (TeplFile *file);
 
+_TEPL_EXTERN
 void                   tepl_file_set_mount_operation_factory   (TeplFile                  *file,
                                                                 TeplMountOperationFactory  callback,
                                                                 gpointer                   user_data,
                                                                 GDestroyNotify             notify);
 
+_TEPL_EXTERN
 void                   tepl_file_check_file_on_disk            (TeplFile *file);
 
+_TEPL_EXTERN
 gboolean               tepl_file_is_local                      (TeplFile *file);
 
+_TEPL_EXTERN
 gboolean               tepl_file_is_externally_modified        (TeplFile *file);
 
+_TEPL_EXTERN
 gboolean               tepl_file_is_deleted                    (TeplFile *file);
 
+_TEPL_EXTERN
 gboolean               tepl_file_is_readonly                   (TeplFile *file);
 
+_TEPL_EXTERN
 void                   tepl_file_add_uri_to_recent_manager     (TeplFile *file);
 
 G_GNUC_INTERNAL
diff --git a/tepl/tepl-fold-region.h b/tepl/tepl-fold-region.h
index 1658a18..651c84c 100644
--- a/tepl/tepl-fold-region.h
+++ b/tepl/tepl-fold-region.h
@@ -25,10 +25,12 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_FOLD_REGION (tepl_fold_region_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplFoldRegion, tepl_fold_region,
                          TEPL, FOLD_REGION,
                          GObject)
@@ -40,22 +42,28 @@ struct _TeplFoldRegionClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 TeplFoldRegion *
                tepl_fold_region_new            (GtkTextBuffer     *buffer,
                                                 const GtkTextIter *start,
                                                 const GtkTextIter *end);
 
+_TEPL_EXTERN
 GtkTextBuffer * tepl_fold_region_get_buffer    (TeplFoldRegion    *fold_region);
 
+_TEPL_EXTERN
 gboolean       tepl_fold_region_get_folded     (TeplFoldRegion    *fold_region);
 
+_TEPL_EXTERN
 void           tepl_fold_region_set_folded     (TeplFoldRegion    *fold_region,
                                                 gboolean           folded);
 
+_TEPL_EXTERN
 gboolean       tepl_fold_region_get_bounds     (TeplFoldRegion    *fold_region,
                                                 GtkTextIter       *start,
                                                 GtkTextIter       *end);
 
+_TEPL_EXTERN
 void           tepl_fold_region_set_bounds     (TeplFoldRegion    *fold_region,
                                                 const GtkTextIter *start,
                                                 const GtkTextIter *end);
diff --git a/tepl/tepl-goto-line-bar.h b/tepl/tepl-goto-line-bar.h
index 5330e80..c44c584 100644
--- a/tepl/tepl-goto-line-bar.h
+++ b/tepl/tepl-goto-line-bar.h
@@ -54,13 +54,17 @@ struct _TeplGotoLineBarClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                  tepl_goto_line_bar_get_type                     (void);
 
+_TEPL_EXTERN
 TeplGotoLineBar *      tepl_goto_line_bar_new                          (void);
 
+_TEPL_EXTERN
 void                   tepl_goto_line_bar_set_view                     (TeplGotoLineBar *bar,
                                                                         TeplView        *view);
 
+_TEPL_EXTERN
 void                   tepl_goto_line_bar_grab_focus_to_entry          (TeplGotoLineBar *bar);
 
 G_GNUC_INTERNAL
diff --git a/tepl/tepl-gutter-renderer-folds.h b/tepl/tepl-gutter-renderer-folds.h
index 068cb77..c4ab169 100644
--- a/tepl/tepl-gutter-renderer-folds.h
+++ b/tepl/tepl-gutter-renderer-folds.h
@@ -26,10 +26,12 @@
 #endif
 
 #include <gtksourceview/gtksource.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_GUTTER_RENDERER_FOLDS (tepl_gutter_renderer_folds_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplGutterRendererFolds, tepl_gutter_renderer_folds,
                          TEPL, GUTTER_RENDERER_FOLDS,
                          GtkSourceGutterRenderer)
@@ -68,9 +70,11 @@ typedef enum
        TEPL_GUTTER_RENDERER_FOLDS_STATE_END            = 1 << 3
 } TeplGutterRendererFoldsState;
 
+_TEPL_EXTERN
 GtkSourceGutterRenderer *
                tepl_gutter_renderer_folds_new                  (void);
 
+_TEPL_EXTERN
 void           tepl_gutter_renderer_folds_set_state            (TeplGutterRendererFolds      *self,
                                                                 TeplGutterRendererFoldsState  state);
 
diff --git a/tepl/tepl-info-bar.h b/tepl/tepl-info-bar.h
index dbea280..fd32afd 100644
--- a/tepl/tepl-info-bar.h
+++ b/tepl/tepl-info-bar.h
@@ -25,10 +25,12 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_INFO_BAR (tepl_info_bar_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplInfoBar, tepl_info_bar,
                          TEPL, INFO_BAR,
                          GtkInfoBar)
@@ -40,28 +42,37 @@ struct _TeplInfoBarClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 TeplInfoBar *          tepl_info_bar_new                               (void);
 
+_TEPL_EXTERN
 TeplInfoBar *          tepl_info_bar_new_simple                        (GtkMessageType  msg_type,
                                                                         const gchar    *primary_msg,
                                                                         const gchar    *secondary_msg);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_add_icon                          (TeplInfoBar *info_bar);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_add_primary_message               (TeplInfoBar *info_bar,
                                                                         const gchar *primary_msg);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_add_secondary_message             (TeplInfoBar *info_bar,
                                                                         const gchar *secondary_msg);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_add_content_widget                (TeplInfoBar *info_bar,
                                                                         GtkWidget   *content);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_add_close_button                  (TeplInfoBar *info_bar);
 
+_TEPL_EXTERN
 void                   tepl_info_bar_set_buttons_orientation           (TeplInfoBar    *info_bar,
                                                                         GtkOrientation  buttons_orientation);
 
+_TEPL_EXTERN
 GtkLabel *             tepl_info_bar_create_label                      (void);
 
 G_GNUC_INTERNAL
diff --git a/tepl/tepl-init.h b/tepl/tepl-init.h
index e5e578a..a2e2601 100644
--- a/tepl/tepl-init.h
+++ b/tepl/tepl-init.h
@@ -25,10 +25,13 @@
 #endif
 
 #include <glib.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
+_TEPL_EXTERN
 void   tepl_init               (void);
+_TEPL_EXTERN
 void   tepl_finalize           (void);
 
 G_END_DECLS
diff --git a/tepl/tepl-io-error-info-bars.h b/tepl/tepl-io-error-info-bars.h
index 0bbc543..5ebdb43 100644
--- a/tepl/tepl-io-error-info-bars.h
+++ b/tepl/tepl-io-error-info-bars.h
@@ -25,14 +25,18 @@
 
 G_BEGIN_DECLS
 
+_TEPL_EXTERN
 TeplInfoBar *  tepl_io_error_info_bar_file_already_open                (GFile *location);
 
+_TEPL_EXTERN
 TeplInfoBar *  tepl_io_error_info_bar_cant_create_backup               (GFile        *location,
                                                                         const GError *error);
 
+_TEPL_EXTERN
 TeplInfoBar *  tepl_io_error_info_bar_externally_modified              (GFile    *location,
                                                                         gboolean  document_modified);
 
+_TEPL_EXTERN
 TeplInfoBar *  tepl_io_error_info_bar_invalid_characters               (GFile *location);
 
 G_END_DECLS
diff --git a/tepl/tepl-iter.h b/tepl/tepl-iter.h
index c0f148f..7970f97 100644
--- a/tepl/tepl-iter.h
+++ b/tepl/tepl-iter.h
@@ -25,9 +25,11 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
+_TEPL_EXTERN
 gchar *                tepl_iter_get_line_indentation          (const GtkTextIter *iter);
 
 G_END_DECLS
diff --git a/tepl/tepl-menu-shell.h b/tepl/tepl-menu-shell.h
index db9eec5..6d4b436 100644
--- a/tepl/tepl-menu-shell.h
+++ b/tepl/tepl-menu-shell.h
@@ -25,9 +25,11 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
+_TEPL_EXTERN
 void   tepl_menu_shell_append_edit_actions     (GtkMenuShell *menu_shell);
 
 G_END_DECLS
diff --git a/tepl/tepl-metadata-manager.h b/tepl/tepl-metadata-manager.h
index ca8b189..da9b980 100644
--- a/tepl/tepl-metadata-manager.h
+++ b/tepl/tepl-metadata-manager.h
@@ -54,29 +54,36 @@ struct _TeplMetadataManagerClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType                  tepl_metadata_manager_get_type          (void);
 
+_TEPL_EXTERN
 TeplMetadataManager *  tepl_metadata_manager_get_singleton     (void);
 
 G_GNUC_INTERNAL
 void                   _tepl_metadata_manager_unref_singleton  (void);
 
+_TEPL_EXTERN
 void                   tepl_metadata_manager_trim              (TeplMetadataManager *manager,
                                                                 gint                 
max_number_of_locations);
 
+_TEPL_EXTERN
 gboolean               tepl_metadata_manager_load_from_disk    (TeplMetadataManager  *manager,
                                                                 GFile                *from_file,
                                                                 GError              **error);
 
+_TEPL_EXTERN
 gboolean               tepl_metadata_manager_save_to_disk      (TeplMetadataManager  *manager,
                                                                 GFile                *to_file,
                                                                 gboolean              trim,
                                                                 GError              **error);
 
+_TEPL_EXTERN
 void                   tepl_metadata_manager_copy_from         (TeplMetadataManager *from_manager,
                                                                 GFile               *for_location,
                                                                 TeplMetadata        *to_metadata);
 
+_TEPL_EXTERN
 void                   tepl_metadata_manager_merge_into        (TeplMetadataManager *into_manager,
                                                                 GFile               *for_location,
                                                                 TeplMetadata        *from_metadata);
diff --git a/tepl/tepl-metadata.h b/tepl/tepl-metadata.h
index f80ee02..e17f686 100644
--- a/tepl/tepl-metadata.h
+++ b/tepl/tepl-metadata.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <gio/gio.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -53,13 +54,17 @@ struct _TeplMetadataClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_metadata_get_type          (void);
 
+_TEPL_EXTERN
 TeplMetadata * tepl_metadata_new               (void);
 
+_TEPL_EXTERN
 gchar *                tepl_metadata_get               (TeplMetadata *metadata,
                                                 const gchar  *key);
 
+_TEPL_EXTERN
 void           tepl_metadata_set               (TeplMetadata *metadata,
                                                 const gchar  *key,
                                                 const gchar  *value);
diff --git a/tepl/tepl-notebook.h b/tepl/tepl-notebook.h
index a3378f8..9cceb92 100644
--- a/tepl/tepl-notebook.h
+++ b/tepl/tepl-notebook.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -53,8 +54,10 @@ struct _TeplNotebookClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_notebook_get_type  (void);
 
+_TEPL_EXTERN
 GtkWidget *    tepl_notebook_new       (void);
 
 G_END_DECLS
diff --git a/tepl/tepl-panel.h b/tepl/tepl-panel.h
index 21a9dcf..dd7c8df 100644
--- a/tepl/tepl-panel.h
+++ b/tepl/tepl-panel.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -53,26 +54,34 @@ struct _TeplPanelClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_panel_get_type                             (void);
 
+_TEPL_EXTERN
 TeplPanel *    tepl_panel_new                                  (void);
 
+_TEPL_EXTERN
 TeplPanel *    tepl_panel_new_for_left_side_panel              (void);
 
+_TEPL_EXTERN
 GtkStack *     tepl_panel_get_stack                            (TeplPanel *panel);
 
+_TEPL_EXTERN
 void           tepl_panel_add_component                        (TeplPanel   *panel,
                                                                 GtkWidget   *component,
                                                                 const gchar *name,
                                                                 const gchar *title,
                                                                 const gchar *icon_name);
 
+_TEPL_EXTERN
 void           tepl_panel_provide_active_component_gsetting    (TeplPanel   *panel,
                                                                 GSettings   *settings,
                                                                 const gchar *setting_key);
 
+_TEPL_EXTERN
 void           tepl_panel_restore_state_from_gsettings         (TeplPanel *panel);
 
+_TEPL_EXTERN
 void           tepl_panel_save_state_to_gsettings              (TeplPanel *panel);
 
 G_END_DECLS
diff --git a/tepl/tepl-statusbar.h b/tepl/tepl-statusbar.h
index 3ee5371..62168e0 100644
--- a/tepl/tepl-statusbar.h
+++ b/tepl/tepl-statusbar.h
@@ -54,16 +54,21 @@ struct _TeplStatusbarClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_statusbar_get_type                 (void);
 
+_TEPL_EXTERN
 TeplStatusbar *        tepl_statusbar_new                      (void);
 
+_TEPL_EXTERN
 void           tepl_statusbar_show_cursor_position     (TeplStatusbar *statusbar,
                                                         gint           line,
                                                         gint           column);
 
+_TEPL_EXTERN
 void           tepl_statusbar_hide_cursor_position     (TeplStatusbar *statusbar);
 
+_TEPL_EXTERN
 void           tepl_statusbar_set_tab_group            (TeplStatusbar *statusbar,
                                                         TeplTabGroup  *tab_group);
 
diff --git a/tepl/tepl-style-scheme-chooser-widget.h b/tepl/tepl-style-scheme-chooser-widget.h
index 894a967..925e169 100644
--- a/tepl/tepl-style-scheme-chooser-widget.h
+++ b/tepl/tepl-style-scheme-chooser-widget.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
@@ -53,13 +54,17 @@ struct _TeplStyleSchemeChooserWidgetClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_style_scheme_chooser_widget_get_type               (void);
 
+_TEPL_EXTERN
 TeplStyleSchemeChooserWidget *
                tepl_style_scheme_chooser_widget_new                    (void);
 
+_TEPL_EXTERN
 gchar *                tepl_style_scheme_chooser_widget_get_style_scheme_id    (TeplStyleSchemeChooserWidget 
*chooser);
 
+_TEPL_EXTERN
 void           tepl_style_scheme_chooser_widget_set_style_scheme_id    (TeplStyleSchemeChooserWidget 
*chooser,
                                                                         const gchar                  
*style_scheme_id);
 
diff --git a/tepl/tepl-tab-group.h b/tepl/tepl-tab-group.h
index a925e66..89dbf7a 100644
--- a/tepl/tepl-tab-group.h
+++ b/tepl/tepl-tab-group.h
@@ -76,23 +76,32 @@ struct _TeplTabGroupInterface
                                                 TeplTab      *tab);
 };
 
+_TEPL_EXTERN
 GType          tepl_tab_group_get_type                 (void);
 
+_TEPL_EXTERN
 GList *                tepl_tab_group_get_tabs                 (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 GList *                tepl_tab_group_get_views                (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 GList *                tepl_tab_group_get_buffers              (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 TeplTab *      tepl_tab_group_get_active_tab           (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 void           tepl_tab_group_set_active_tab           (TeplTabGroup *tab_group,
                                                         TeplTab      *tab);
 
+_TEPL_EXTERN
 TeplView *     tepl_tab_group_get_active_view          (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 TeplBuffer *   tepl_tab_group_get_active_buffer        (TeplTabGroup *tab_group);
 
+_TEPL_EXTERN
 void           tepl_tab_group_append_tab               (TeplTabGroup *tab_group,
                                                         TeplTab      *tab,
                                                         gboolean      jump_to);
diff --git a/tepl/tepl-tab-label.h b/tepl/tepl-tab-label.h
index 73c262a..2ca433f 100644
--- a/tepl/tepl-tab-label.h
+++ b/tepl/tepl-tab-label.h
@@ -67,12 +67,16 @@ struct _TeplTabLabelClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_tab_label_get_type         (void);
 
+_TEPL_EXTERN
 GtkWidget *    tepl_tab_label_new              (TeplTab *tab);
 
+_TEPL_EXTERN
 TeplTab *      tepl_tab_label_get_tab          (TeplTabLabel *tab_label);
 
+_TEPL_EXTERN
 void           tepl_tab_label_update_tooltip   (TeplTabLabel *tab_label);
 
 G_END_DECLS
diff --git a/tepl/tepl-tab.h b/tepl/tepl-tab.h
index dfc2c2a..947f1c1 100644
--- a/tepl/tepl-tab.h
+++ b/tepl/tepl-tab.h
@@ -90,40 +90,54 @@ struct _TeplTabClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GType          tepl_tab_get_type               (void);
 
+_TEPL_EXTERN
 TeplTab *      tepl_tab_new                    (void);
 
+_TEPL_EXTERN
 TeplTab *      tepl_tab_new_with_view          (TeplView *view);
 
+_TEPL_EXTERN
 TeplView *     tepl_tab_get_view               (TeplTab *tab);
 
+_TEPL_EXTERN
 TeplBuffer *   tepl_tab_get_buffer             (TeplTab *tab);
 
+_TEPL_EXTERN
 TeplGotoLineBar *tepl_tab_get_goto_line_bar    (TeplTab *tab);
 
+_TEPL_EXTERN
 void           tepl_tab_add_info_bar           (TeplTab    *tab,
                                                 GtkInfoBar *info_bar);
 
+_TEPL_EXTERN
 void           tepl_tab_load_file              (TeplTab *tab,
                                                 GFile   *location);
 
+_TEPL_EXTERN
 void           tepl_tab_save_async             (TeplTab             *tab,
                                                 GAsyncReadyCallback  callback,
                                                 gpointer             user_data);
 
+_TEPL_EXTERN
 gboolean       tepl_tab_save_finish            (TeplTab      *tab,
                                                 GAsyncResult *result);
 
+_TEPL_EXTERN
 void           tepl_tab_save_async_simple      (TeplTab *tab);
 
+_TEPL_EXTERN
 void           tepl_tab_save_as_async          (TeplTab             *tab,
                                                 GAsyncReadyCallback  callback,
                                                 gpointer             user_data);
 
+_TEPL_EXTERN
 gboolean       tepl_tab_save_as_finish         (TeplTab      *tab,
                                                 GAsyncResult *result);
 
+_TEPL_EXTERN
 void           tepl_tab_save_as_async_simple   (TeplTab *tab);
 
 G_END_DECLS
diff --git a/tepl/tepl-utils.h b/tepl/tepl-utils.h
index e289e6b..37f3df2 100644
--- a/tepl/tepl-utils.h
+++ b/tepl/tepl-utils.h
@@ -25,29 +25,37 @@
 #endif
 
 #include <gtk/gtk.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
 /* String utilities */
 
+_TEPL_EXTERN
 gchar *                tepl_utils_str_middle_truncate                  (const gchar *str,
                                                                 guint        truncate_length);
 
+_TEPL_EXTERN
 gchar *                tepl_utils_str_end_truncate                     (const gchar *str,
                                                                 guint        truncate_length);
 
+_TEPL_EXTERN
 gchar *                tepl_utils_str_replace                          (const gchar *string,
                                                                 const gchar *search,
                                                                 const gchar *replacement);
 
 /* File utilities */
 
+_TEPL_EXTERN
 gchar *                tepl_utils_get_file_extension                   (const gchar *filename);
 
+_TEPL_EXTERN
 gchar *                tepl_utils_get_file_shortname                   (const gchar *filename);
 
+_TEPL_EXTERN
 gchar *                tepl_utils_replace_home_dir_with_tilde          (const gchar *filename);
 
+_TEPL_EXTERN
 gboolean       tepl_utils_decode_uri                           (const gchar  *uri,
                                                                 gchar       **scheme,
                                                                 gchar       **user,
@@ -58,32 +66,38 @@ gboolean    tepl_utils_decode_uri                           (const gchar  *uri,
 G_GNUC_INTERNAL
 gchar *                _tepl_utils_get_fallback_basename_for_display   (GFile *location);
 
+_TEPL_EXTERN
 gboolean       tepl_utils_create_parent_directories            (GFile         *file,
                                                                 GCancellable  *cancellable,
                                                                 GError       **error);
 
+_TEPL_EXTERN
 void           tepl_utils_file_query_exists_async              (GFile               *file,
                                                                 GCancellable        *cancellable,
                                                                 GAsyncReadyCallback  callback,
                                                                 gpointer             user_data);
 
+_TEPL_EXTERN
 gboolean       tepl_utils_file_query_exists_finish             (GFile        *file,
                                                                 GAsyncResult *result);
 
 /* Widget utilities */
 
+_TEPL_EXTERN
 GtkWidget *    tepl_utils_create_close_button                  (void);
 
 G_GNUC_INTERNAL
 void           _tepl_utils_associate_secondary_window          (GtkWindow *secondary_window,
                                                                 GtkWidget *main_window_widget);
 
+_TEPL_EXTERN
 void           tepl_utils_show_warning_dialog                  (GtkWindow   *parent,
                                                                 const gchar *format,
                                                                 ...) G_GNUC_PRINTF(2, 3);
 
 /* Other */
 
+_TEPL_EXTERN
 gboolean       tepl_utils_binding_transform_func_smart_bool    (GBinding     *binding,
                                                                 const GValue *from_value,
                                                                 GValue       *to_value,
diff --git a/tepl/tepl-view.h b/tepl/tepl-view.h
index c631614..bb47140 100644
--- a/tepl/tepl-view.h
+++ b/tepl/tepl-view.h
@@ -25,10 +25,12 @@
 #endif
 
 #include <gtksourceview/gtksource.h>
+#include <tepl/tepl-macros.h>
 
 G_BEGIN_DECLS
 
 #define TEPL_TYPE_VIEW (tepl_view_get_type ())
+_TEPL_EXTERN
 G_DECLARE_DERIVABLE_TYPE (TeplView, tepl_view,
                          TEPL, VIEW,
                          GtkSourceView)
@@ -40,29 +42,40 @@ struct _TeplViewClass
        gpointer padding[12];
 };
 
+_TEPL_EXTERN
 GtkWidget *            tepl_view_new                                   (void);
 
+_TEPL_EXTERN
 GtkWidget *            tepl_view_new_with_buffer                       (GtkSourceBuffer *buffer);
 
+_TEPL_EXTERN
 void                   tepl_view_cut_clipboard                         (TeplView *view);
 
+_TEPL_EXTERN
 void                   tepl_view_copy_clipboard                        (TeplView *view);
 
+_TEPL_EXTERN
 void                   tepl_view_paste_clipboard                       (TeplView *view);
 
+_TEPL_EXTERN
 void                   tepl_view_delete_selection                      (TeplView *view);
 
+_TEPL_EXTERN
 void                   tepl_view_select_all                            (TeplView *view);
 
+_TEPL_EXTERN
 void                   tepl_view_scroll_to_cursor                      (TeplView *view);
 
+_TEPL_EXTERN
 gboolean               tepl_view_goto_line                             (TeplView *view,
                                                                         gint      line);
 
+_TEPL_EXTERN
 gboolean               tepl_view_goto_line_offset                      (TeplView *view,
                                                                         gint      line,
                                                                         gint      line_offset);
 
+_TEPL_EXTERN
 void                   tepl_view_select_lines                          (TeplView *view,
                                                                         gint      start_line,
                                                                         gint      end_line);


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