[gtksourceview] Use G_GNUC_INTERNAL to avoid exporting private symbols



commit 1c57beb586e2e7742e5c3775ce2ddc408723578d
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Tue Dec 25 22:54:51 2012 +0100

    Use G_GNUC_INTERNAL to avoid exporting private symbols
    
    With the relinfo.pl script from Ulrich Drepper, here are the results.
    
    Before:
    128 relocations, 105 relative (82%), 946 PLT entries, 247 for local syms (26%)
    
    After:
    125 relocations, 103 relative (82%), 880 PLT entries, 181 for local syms (20%)
    
    Private symbols prefixed with an underscore (or without the gtk_source_
    prefix) were not exported. However G_GNUC_INTERNAL is beneficial for
    them too because the compiler is now aware that those symbols are not
    exported, and therefore it can better optimize the code.
    
    Another problem remains: the big number of PLT entries for local
    symbols. Normally it should be 0 I think (it is 0 for the glib, gio and
    gtk+, for example, so it should be possible for GSV too).

 .../words/gtksourcecompletionwordsbuffer.h         |    6 +++++
 .../words/gtksourcecompletionwordslibrary.h        |   15 +++++++++++++
 .../words/gtksourcecompletionwordsproposal.h       |    6 +++++
 .../words/gtksourcecompletionwordsutils.h          |    2 +
 gtksourceview/gtksourcecompletion-private.h        |    1 +
 gtksourceview/gtksourcecompletionmodel.h           |   23 +++++++++++++++++++-
 gtksourceview/gtksourcecompletionutils.h           |    7 ++++++
 gtksourceview/gtksourcecontextengine.h             |   17 ++++++++++++++
 gtksourceview/gtksourceengine.h                    |   11 +++++++++
 gtksourceview/gtksourcegutter-private.h            |    1 +
 gtksourceview/gtksourcegutterrenderer-private.h    |    2 +
 gtksourceview/gtksourcegutterrendererlines.h       |    2 +
 gtksourceview/gtksourcegutterrenderermarks.h       |    2 +
 gtksourceview/gtksourcelanguage-private.h          |   13 +++++++++++
 gtksourceview/gtksourcepixbufhelper.h              |   12 ++++++++++
 gtksourceview/gtksourceregex.h                     |   11 +++++++++
 gtksourceview/gtksourcestyle-private.h             |    1 +
 gtksourceview/gtksourceundomanagerdefault.h        |    4 +-
 gtksourceview/gtksourceview-i18n.h                 |    3 ++
 gtksourceview/gtksourceview-utils.h                |    3 ++
 gtksourceview/gtktextregion.h                      |   14 ++++++++++++
 21 files changed, 153 insertions(+), 3 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
index 9e32846..8088e6a 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.h
@@ -51,20 +51,26 @@ struct _GtkSourceCompletionWordsBufferClass {
 	GObjectClass parent_class;
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_completion_words_buffer_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceCompletionWordsBuffer *
 		 gtk_source_completion_words_buffer_new 	(GtkSourceCompletionWordsLibrary *library,
 								 GtkTextBuffer                   *buffer);
 
+G_GNUC_INTERNAL
 GtkTextBuffer 	*gtk_source_completion_words_buffer_get_buffer	(GtkSourceCompletionWordsBuffer  *buffer);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_buffer_set_scan_batch_size (GtkSourceCompletionWordsBuffer *buffer,
                                                                          guint                           size);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_buffer_set_minimum_word_size (GtkSourceCompletionWordsBuffer *buffer,
                                                                            guint                           size);
 
+G_GNUC_INTERNAL
 GtkTextMark     *gtk_source_completion_words_buffer_get_mark	(GtkSourceCompletionWordsBuffer *buffer);
 
 G_END_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
index e118c70..07b2979 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
@@ -49,35 +49,50 @@ struct _GtkSourceCompletionWordsLibraryClass {
 	GObjectClass parent_class;
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_completion_words_library_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceCompletionWordsLibrary *
 		gtk_source_completion_words_library_new			(void);
 
 /* Finding */
+G_GNUC_INTERNAL
 GSequenceIter	*gtk_source_completion_words_library_find 		(GtkSourceCompletionWordsLibrary  *library,
 									 GtkSourceCompletionWordsProposal *proposal);
+
+G_GNUC_INTERNAL
 GSequenceIter	*gtk_source_completion_words_library_find_first		(GtkSourceCompletionWordsLibrary  *library,
 									 const gchar                      *word,
 									 gint                              len);
 
+G_GNUC_INTERNAL
 GSequenceIter	*gtk_source_completion_words_library_find_next		(GSequenceIter                    *iter,
 									 const gchar                      *word,
 									 gint                              len);
 
 /* Getting */
+G_GNUC_INTERNAL
 GtkSourceCompletionWordsProposal *
 		 gtk_source_completion_words_library_get_proposal 	(GSequenceIter                    *iter);
 
 /* Adding/removing */
+G_GNUC_INTERNAL
 GtkSourceCompletionWordsProposal *
 		 gtk_source_completion_words_library_add_word 		(GtkSourceCompletionWordsLibrary  *library,
                                               				 const gchar                      *word);
+
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_library_remove_word 	(GtkSourceCompletionWordsLibrary  *library,
                                                  			 GtkSourceCompletionWordsProposal *proposal);
 
+G_GNUC_INTERNAL
 gboolean	 gtk_source_completion_words_library_is_locked 		(GtkSourceCompletionWordsLibrary *library);
+
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_library_lock 		(GtkSourceCompletionWordsLibrary *library);
+
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_library_unlock 		(GtkSourceCompletionWordsLibrary *library);
 
 G_END_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
index 12e6e3c..81d00da 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
@@ -49,14 +49,20 @@ struct _GtkSourceCompletionWordsProposalClass {
 	GObjectClass parent_class;
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_completion_words_proposal_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceCompletionWordsProposal *
 		 gtk_source_completion_words_proposal_new 	(const gchar                      *word);
 
+G_GNUC_INTERNAL
 const gchar 	*gtk_source_completion_words_proposal_get_word 	(GtkSourceCompletionWordsProposal *proposal);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_proposal_use 	(GtkSourceCompletionWordsProposal *proposal);
+
+G_GNUC_INTERNAL
 void		 gtk_source_completion_words_proposal_unuse 	(GtkSourceCompletionWordsProposal *proposal);
 
 G_END_DECLS
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h
index 27490c3..ee449fe 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsutils.h
@@ -25,10 +25,12 @@ G_BEGIN_DECLS
 
 typedef gboolean (*CharacterCheck)(gunichar ch, gpointer data);
 
+G_GNUC_INTERNAL
 gboolean	 gtk_source_completion_words_utils_forward_word_end 	(GtkTextIter    *iter,
 									 CharacterCheck  valid,
 									 gpointer        data);
 
+G_GNUC_INTERNAL
 gboolean	 gtk_source_completion_words_utils_backward_word_start 	(GtkTextIter    *iter,
 									 CharacterCheck  valid,
 									 CharacterCheck  valid_start,
diff --git a/gtksourceview/gtksourcecompletion-private.h b/gtksourceview/gtksourcecompletion-private.h
index 492eab1..cf9f930 100644
--- a/gtksourceview/gtksourcecompletion-private.h
+++ b/gtksourceview/gtksourcecompletion-private.h
@@ -28,6 +28,7 @@
 /* Forward declaration */
 struct _GtkSourceView;
 
+G_GNUC_INTERNAL
 GtkSourceCompletion *gtk_source_completion_new (struct _GtkSourceView *source_view);
 
 #endif /* __GTK_SOURCE_COMPLETION_PIVATE_H__ */
diff --git a/gtksourceview/gtksourcecompletionmodel.h b/gtksourceview/gtksourcecompletionmodel.h
index f6c365d..7b1c4d5 100644
--- a/gtksourceview/gtksourcecompletionmodel.h
+++ b/gtksourceview/gtksourcecompletionmodel.h
@@ -63,46 +63,67 @@ enum
 	GTK_SOURCE_COMPLETION_MODEL_N_COLUMNS
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_completion_model_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceCompletionModel *
 		gtk_source_completion_model_new 	(void);
 
+G_GNUC_INTERNAL
 void		gtk_source_completion_model_begin	(GtkSourceCompletionModel           *model,
                                                          GList                              *providers);
+
+G_GNUC_INTERNAL
 void		gtk_source_completion_model_append 	(GtkSourceCompletionModel           *model,
 							 GtkSourceCompletionProvider        *provider,
 							 GList                              *proposals);
+
+G_GNUC_INTERNAL
 void		gtk_source_completion_model_end		(GtkSourceCompletionModel           *model,
 							 GtkSourceCompletionProvider        *provider);
+
+G_GNUC_INTERNAL
 void		gtk_source_completion_model_cancel	(GtkSourceCompletionModel           *model);
 
+G_GNUC_INTERNAL
 gboolean	gtk_source_completion_model_is_empty 	(GtkSourceCompletionModel           *model,
                                                          gboolean                            invisible);
 
+G_GNUC_INTERNAL
 void            gtk_source_completion_model_set_visible_providers (GtkSourceCompletionModel *model,
                                                                    GList                    *providers);
-GList          *gtk_source_completion_model_get_visible_providers (GtkSourceCompletionModel *model);
 
+G_GNUC_INTERNAL
+GList          *gtk_source_completion_model_get_visible_providers (GtkSourceCompletionModel *model);
 
+G_GNUC_INTERNAL
 GList          *gtk_source_completion_model_get_providers (GtkSourceCompletionModel         *model);
+
+G_GNUC_INTERNAL
 guint		gtk_source_completion_model_n_proposals (GtkSourceCompletionModel           *model,
                                                          GtkSourceCompletionProvider        *provider);
 
+G_GNUC_INTERNAL
 void 		gtk_source_completion_model_clear 	(GtkSourceCompletionModel           *model);
 
+G_GNUC_INTERNAL
 void 		gtk_source_completion_model_set_show_headers (GtkSourceCompletionModel      *model,
 							      gboolean                       show_headers);
 
+G_GNUC_INTERNAL
 gboolean	gtk_source_completion_model_iter_is_header (GtkSourceCompletionModel        *model,
                                                             GtkTreeIter                     *iter);
 
+G_GNUC_INTERNAL
 gboolean 	gtk_source_completion_model_iter_previous (GtkSourceCompletionModel         *model,
 							   GtkTreeIter                      *iter);
 
+G_GNUC_INTERNAL
 gboolean 	gtk_source_completion_model_iter_last 	(GtkSourceCompletionModel           *model,
 							 GtkTreeIter                        *iter);
 
+G_GNUC_INTERNAL
 gboolean	gtk_source_completion_model_iter_equal	(GtkSourceCompletionModel           *model,
 							 GtkTreeIter                        *iter1,
 							 GtkTreeIter                        *iter2);
diff --git a/gtksourceview/gtksourcecompletionutils.h b/gtksourceview/gtksourcecompletionutils.h
index 42353a2..6d44aba 100644
--- a/gtksourceview/gtksourcecompletionutils.h
+++ b/gtksourceview/gtksourcecompletionutils.h
@@ -27,28 +27,35 @@
 
 G_BEGIN_DECLS
 
+G_GNUC_INTERNAL
 gboolean	 gtk_source_completion_utils_is_separator		(gunichar         ch);
 
+G_GNUC_INTERNAL
 gchar		*gtk_source_completion_utils_get_word_iter		(GtkSourceBuffer *source_buffer,
 									 GtkTextIter     *current,
 									 GtkTextIter     *start_word,
 									 GtkTextIter     *end_word);
 
+G_GNUC_INTERNAL
 gchar		*gtk_source_completion_utils_get_word			(GtkSourceBuffer *text_view);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_utils_replace_word		(GtkSourceBuffer *source_buffer,
 									 GtkTextIter     *iter,
 									 const gchar     *text,
 									 gint             len);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_utils_replace_current_word	(GtkSourceBuffer *source_buffer,
 									 const gchar     *text,
 									 gint             len);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_utils_move_to_iter		(GtkWindow       *window,
 									 GtkSourceView   *view,
 									 GtkTextIter     *iter);
 
+G_GNUC_INTERNAL
 void		 gtk_source_completion_utils_move_to_cursor		(GtkWindow       *window,
 									 GtkSourceView   *view);
 
diff --git a/gtksourceview/gtksourcecontextengine.h b/gtksourceview/gtksourcecontextengine.h
index c5ac131..ca1b753 100644
--- a/gtksourceview/gtksourcecontextengine.h
+++ b/gtksourceview/gtksourcecontextengine.h
@@ -69,20 +69,30 @@ typedef enum {
 	GTK_SOURCE_CONTEXT_REF_ORIGINAL		= 1 << 2
 } GtkSourceContextRefOptions;
 
+G_GNUC_INTERNAL
 GType		 _gtk_source_context_engine_get_type	(void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceContextData *_gtk_source_context_data_new	(GtkSourceLanguage	*lang);
+
+G_GNUC_INTERNAL
 GtkSourceContextData *_gtk_source_context_data_ref	(GtkSourceContextData	*data);
+
+G_GNUC_INTERNAL
 void		 _gtk_source_context_data_unref		(GtkSourceContextData	*data);
 
+G_GNUC_INTERNAL
 GtkSourceContextClass *
 		gtk_source_context_class_new		(gchar const *name,
 							 gboolean     enabled);
 
+G_GNUC_INTERNAL
 void		gtk_source_context_class_free		(GtkSourceContextClass *cclass);
 
+G_GNUC_INTERNAL
 GtkSourceContextEngine *_gtk_source_context_engine_new  (GtkSourceContextData	*data);
 
+G_GNUC_INTERNAL
 gboolean	 _gtk_source_context_data_define_context
 							(GtkSourceContextData	 *data,
 							 const gchar		 *id,
@@ -95,6 +105,7 @@ gboolean	 _gtk_source_context_data_define_context
 							 GtkSourceContextFlags    flags,
 							 GError			**error);
 
+G_GNUC_INTERNAL
 gboolean	 _gtk_source_context_data_add_sub_pattern
 							(GtkSourceContextData	 *data,
 							 const gchar		 *id,
@@ -105,6 +116,7 @@ gboolean	 _gtk_source_context_data_add_sub_pattern
 							 GSList			 *context_classes,
 							 GError			**error);
 
+G_GNUC_INTERNAL
 gboolean	 _gtk_source_context_data_add_ref 	(GtkSourceContextData	 *data,
 							 const gchar		 *parent_id,
 							 const gchar		 *ref_id,
@@ -113,16 +125,21 @@ gboolean	 _gtk_source_context_data_add_ref 	(GtkSourceContextData	 *data,
 							 gboolean		  all,
 							 GError			**error);
 
+G_GNUC_INTERNAL
 GtkSourceContextReplace *
 		 _gtk_source_context_replace_new	(const gchar             *to_replace_id,
 							 const gchar             *replace_with_id);
+
+G_GNUC_INTERNAL
 void		 _gtk_source_context_replace_free	(GtkSourceContextReplace *repl);
 
+G_GNUC_INTERNAL
 gboolean	 _gtk_source_context_data_finish_parse	(GtkSourceContextData	 *data,
 							 GList                   *overrides,
 							 GError			**error);
 
 /* Only for lang files version 1, do not use it */
+G_GNUC_INTERNAL
 void		 _gtk_source_context_data_set_escape_char
 							(GtkSourceContextData	 *data,
 							 gunichar		  esc_char);
diff --git a/gtksourceview/gtksourceengine.h b/gtksourceview/gtksourceengine.h
index e3b8a82..325cd6f 100644
--- a/gtksourceview/gtksourceengine.h
+++ b/gtksourceview/gtksourceengine.h
@@ -68,23 +68,34 @@ struct _GtkSourceEngineClass
 				       const gchar          *context_class);
 };
 
+G_GNUC_INTERNAL
 GType       _gtk_source_engine_get_type		(void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 void        _gtk_source_engine_attach_buffer	(GtkSourceEngine      *engine,
 						 GtkTextBuffer        *buffer);
+
+G_GNUC_INTERNAL
 void        _gtk_source_engine_text_inserted	(GtkSourceEngine      *engine,
 						 gint                  start_offset,
 						 gint                  end_offset);
+
+G_GNUC_INTERNAL
 void        _gtk_source_engine_text_deleted	(GtkSourceEngine      *engine,
 						 gint                  offset,
 						 gint                  length);
+
+G_GNUC_INTERNAL
 void        _gtk_source_engine_update_highlight	(GtkSourceEngine      *engine,
 						 const GtkTextIter    *start,
 						 const GtkTextIter    *end,
 						 gboolean              synchronous);
+
+G_GNUC_INTERNAL
 void        _gtk_source_engine_set_style_scheme	(GtkSourceEngine      *engine,
 						 GtkSourceStyleScheme *scheme);
 
+G_GNUC_INTERNAL
 GtkTextTag *_gtk_source_engine_get_context_class_tag
 						 (GtkSourceEngine     *engine,
 						  const gchar         *context_class);
diff --git a/gtksourceview/gtksourcegutter-private.h b/gtksourceview/gtksourcegutter-private.h
index ccbd7cc..028af49 100644
--- a/gtksourceview/gtksourcegutter-private.h
+++ b/gtksourceview/gtksourcegutter-private.h
@@ -28,6 +28,7 @@ G_BEGIN_DECLS
 
 struct _GtkSourceView;
 
+G_GNUC_INTERNAL
 GtkSourceGutter *gtk_source_gutter_new (struct _GtkSourceView *view,
                                         GtkTextWindowType      type);
 
diff --git a/gtksourceview/gtksourcegutterrenderer-private.h b/gtksourceview/gtksourcegutterrenderer-private.h
index c0adb22..b674b62 100644
--- a/gtksourceview/gtksourcegutterrenderer-private.h
+++ b/gtksourceview/gtksourcegutterrenderer-private.h
@@ -30,10 +30,12 @@
 
 G_BEGIN_DECLS
 
+G_GNUC_INTERNAL
 void _gtk_source_gutter_renderer_set_view         (GtkSourceGutterRenderer *renderer,
                                                    GtkTextView             *view,
                                                    GtkTextWindowType        window_type);
 
+G_GNUC_INTERNAL
 void _gtk_source_gutter_renderer_unset_view       (GtkSourceGutterRenderer *renderer);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcegutterrendererlines.h b/gtksourceview/gtksourcegutterrendererlines.h
index e1c7a95..299db30 100644
--- a/gtksourceview/gtksourcegutterrendererlines.h
+++ b/gtksourceview/gtksourcegutterrendererlines.h
@@ -57,8 +57,10 @@ struct _GtkSourceGutterRendererLinesClass
 	/*< public >*/
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_gutter_renderer_lines_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceGutterRenderer *gtk_source_gutter_renderer_lines_new (void);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcegutterrenderermarks.h b/gtksourceview/gtksourcegutterrenderermarks.h
index bf303d8..4caa640 100644
--- a/gtksourceview/gtksourcegutterrenderermarks.h
+++ b/gtksourceview/gtksourcegutterrenderermarks.h
@@ -57,8 +57,10 @@ struct _GtkSourceGutterRendererMarksClass
 	/*< public >*/
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_gutter_renderer_marks_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 GtkSourceGutterRenderer *gtk_source_gutter_renderer_marks_new (void);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcelanguage-private.h b/gtksourceview/gtksourcelanguage-private.h
index d2ac49a..4775de4 100644
--- a/gtksourceview/gtksourcelanguage-private.h
+++ b/gtksourceview/gtksourcelanguage-private.h
@@ -63,30 +63,43 @@ struct _GtkSourceLanguagePrivate
 	GtkSourceContextData     *ctx_data;
 };
 
+G_GNUC_INTERNAL
 GtkSourceLanguage 	 *_gtk_source_language_new_from_file 		(const gchar		   *filename,
 									 GtkSourceLanguageManager  *lm);
 
+G_GNUC_INTERNAL
 GtkSourceLanguageManager *_gtk_source_language_get_language_manager 	(GtkSourceLanguage        *language);
 
+G_GNUC_INTERNAL
 const gchar		 *_gtk_source_language_manager_get_rng_file	(GtkSourceLanguageManager *lm);
 
+G_GNUC_INTERNAL
 gchar       		 *_gtk_source_language_translate_string 	(GtkSourceLanguage        *language,
 									 const gchar              *string);
 
+G_GNUC_INTERNAL
 void 			  _gtk_source_language_define_language_styles	(GtkSourceLanguage        *language);
 
+G_GNUC_INTERNAL
 gboolean 		  _gtk_source_language_file_parse_version1 	(GtkSourceLanguage        *language,
 									 GtkSourceContextData     *ctx_data);
 
+G_GNUC_INTERNAL
 gboolean 		  _gtk_source_language_file_parse_version2	(GtkSourceLanguage        *language,
 									 GtkSourceContextData     *ctx_data);
 
+G_GNUC_INTERNAL
 GtkSourceEngine 	 *_gtk_source_language_create_engine		(GtkSourceLanguage	  *language);
 
 /* Utility functions for GtkSourceStyleInfo */
+G_GNUC_INTERNAL
 GtkSourceStyleInfo 	 *_gtk_source_style_info_new 			(const gchar		  *name,
 									 const gchar              *map_to);
+
+G_GNUC_INTERNAL
 GtkSourceStyleInfo 	 *_gtk_source_style_info_copy			(GtkSourceStyleInfo       *info);
+
+G_GNUC_INTERNAL
 void			  _gtk_source_style_info_free			(GtkSourceStyleInfo       *info);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcepixbufhelper.h b/gtksourceview/gtksourcepixbufhelper.h
index c513fbb..e44c5d6 100644
--- a/gtksourceview/gtksourcepixbufhelper.h
+++ b/gtksourceview/gtksourcepixbufhelper.h
@@ -25,29 +25,41 @@
 #include <gtk/gtk.h>
 #include <gtksourceview/gtksourcetypes.h>
 
+G_GNUC_INTERNAL
 GtkSourcePixbufHelper *gtk_source_pixbuf_helper_new (void);
+
+G_GNUC_INTERNAL
 void gtk_source_pixbuf_helper_free (GtkSourcePixbufHelper *helper);
 
+G_GNUC_INTERNAL
 void gtk_source_pixbuf_helper_set_pixbuf (GtkSourcePixbufHelper *helper,
                                           const GdkPixbuf       *pixbuf);
 
+G_GNUC_INTERNAL
 GdkPixbuf *gtk_source_pixbuf_helper_get_pixbuf (GtkSourcePixbufHelper *helper);
 
+G_GNUC_INTERNAL
 void gtk_source_pixbuf_helper_set_stock_id (GtkSourcePixbufHelper *helper,
                                             const gchar           *stock_id);
 
+G_GNUC_INTERNAL
 const gchar *gtk_source_pixbuf_helper_get_stock_id (GtkSourcePixbufHelper *helper);
 
+G_GNUC_INTERNAL
 void gtk_source_pixbuf_helper_set_icon_name (GtkSourcePixbufHelper *helper,
                                              const gchar           *icon_name);
 
+G_GNUC_INTERNAL
 const gchar *gtk_source_pixbuf_helper_get_icon_name (GtkSourcePixbufHelper *helper);
 
+G_GNUC_INTERNAL
 void gtk_source_pixbuf_helper_set_gicon (GtkSourcePixbufHelper *helper,
                                          GIcon                 *gicon);
 
+G_GNUC_INTERNAL
 GIcon *gtk_source_pixbuf_helper_get_gicon (GtkSourcePixbufHelper *helper);
 
+G_GNUC_INTERNAL
 GdkPixbuf *gtk_source_pixbuf_helper_render (GtkSourcePixbufHelper *helper,
                                             GtkWidget             *widget,
                                             gint                   size);
diff --git a/gtksourceview/gtksourceregex.h b/gtksourceview/gtksourceregex.h
index cc92901..a987118 100644
--- a/gtksourceview/gtksourceregex.h
+++ b/gtksourceview/gtksourceregex.h
@@ -28,45 +28,56 @@
 
 G_BEGIN_DECLS
 
+G_GNUC_INTERNAL
 GtkSourceRegex	*_gtk_source_regex_new		(const gchar         *pattern,
 						 GRegexCompileFlags   flags,
 						 GError             **error);
 
+G_GNUC_INTERNAL
 GtkSourceRegex	*_gtk_source_regex_ref		(GtkSourceRegex *regex);
 
+G_GNUC_INTERNAL
 void		 _gtk_source_regex_unref	(GtkSourceRegex *regex);
 
+G_GNUC_INTERNAL
 GtkSourceRegex	*_gtk_source_regex_resolve	(GtkSourceRegex *regex,
 						 GtkSourceRegex *start_regex,
 						 const gchar    *matched_text);
 
+G_GNUC_INTERNAL
 gboolean	 _gtk_source_regex_is_resolved	(GtkSourceRegex *regex);
 
+G_GNUC_INTERNAL
 gboolean	_gtk_source_regex_match		(GtkSourceRegex *regex,
 						 const gchar    *line,
 						 gint             byte_length,
 						 gint             byte_pos);
 
+G_GNUC_INTERNAL
 gchar		*_gtk_source_regex_fetch	(GtkSourceRegex *regex,
 						 gint            num);
 
+G_GNUC_INTERNAL
 void		 _gtk_source_regex_fetch_pos	(GtkSourceRegex *regex,
 						 const gchar    *text,
 						 gint            num,
 						 gint           *start_pos, /* character offsets */
 						 gint           *end_pos);  /* character offsets */
 
+G_GNUC_INTERNAL
 void		 _gtk_source_regex_fetch_pos_bytes (GtkSourceRegex *regex,
 						    gint            num,
 						    gint           *start_pos_p, /* byte offsets */
 						    gint           *end_pos_p);  /* byte offsets */
 
+G_GNUC_INTERNAL
 void		 _gtk_source_regex_fetch_named_pos (GtkSourceRegex *regex,
 						    const gchar    *text,
 						    const gchar    *name,
 						    gint           *start_pos, /* character offsets */
 						    gint           *end_pos);  /* character offsets */
 
+G_GNUC_INTERNAL
 const gchar	*_gtk_source_regex_get_pattern	(GtkSourceRegex *regex);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourcestyle-private.h b/gtksourceview/gtksourcestyle-private.h
index 027aaea..d63727a 100644
--- a/gtksourceview/gtksourcestyle-private.h
+++ b/gtksourceview/gtksourcestyle-private.h
@@ -57,6 +57,7 @@ struct _GtkSourceStyle
 	guint mask : 12;
 };
 
+G_GNUC_INTERNAL
 void		 _gtk_source_style_apply	(const GtkSourceStyle *style,
 						 GtkTextTag           *tag);
 
diff --git a/gtksourceview/gtksourceundomanagerdefault.h b/gtksourceview/gtksourceundomanagerdefault.h
index be4f5dc..e6dd837 100644
--- a/gtksourceview/gtksourceundomanagerdefault.h
+++ b/gtksourceview/gtksourceundomanagerdefault.h
@@ -52,13 +52,13 @@ struct _GtkSourceUndoManagerDefaultClass
 	GObjectClass parent_class;
 };
 
+G_GNUC_INTERNAL
 GType gtk_source_undo_manager_default_get_type (void) G_GNUC_CONST;
 
+G_GNUC_INTERNAL
 void gtk_source_undo_manager_default_set_max_undo_levels (GtkSourceUndoManagerDefault *manager,
                                                           gint                         max_undo_levels);
 
 G_END_DECLS
 
 #endif /* __GTK_SOURCE_UNDO_MANAGER_DEFAULT_H__ */
-
-
diff --git a/gtksourceview/gtksourceview-i18n.h b/gtksourceview/gtksourceview-i18n.h
index ef7bca7..7fa520a 100644
--- a/gtksourceview/gtksourceview-i18n.h
+++ b/gtksourceview/gtksourceview-i18n.h
@@ -68,8 +68,11 @@ G_BEGIN_DECLS
 #    define GD_(Domain,String) (g_strdup (String))
 #endif
 
+G_GNUC_INTERNAL
 const gchar *_gtksourceview_gettext (const char *msgid) G_GNUC_FORMAT(1);
+
 /* NOTE: it returns duplicated string */
+G_GNUC_INTERNAL
 gchar *_gtksourceview_dgettext (const char *domain, const char *msgid) G_GNUC_FORMAT(2);
 
 G_END_DECLS
diff --git a/gtksourceview/gtksourceview-utils.h b/gtksourceview/gtksourceview-utils.h
index 174fc7f..d6ac3f9 100644
--- a/gtksourceview/gtksourceview-utils.h
+++ b/gtksourceview/gtksourceview-utils.h
@@ -26,13 +26,16 @@
 
 G_BEGIN_DECLS
 
+G_GNUC_INTERNAL
 gchar 	**_gtk_source_view_get_default_dirs (const gchar  *basename,
 					     gboolean      compat);
 
+G_GNUC_INTERNAL
 GSList 	 *_gtk_source_view_get_file_list    (gchar       **path,
 					     const gchar  *suffix,
 					     gboolean      only_dirs);
 
+G_GNUC_INTERNAL
 gint	 _gtk_source_string_to_int	    (const gchar *str);
 
 G_END_DECLS
diff --git a/gtksourceview/gtktextregion.h b/gtksourceview/gtktextregion.h
index 8784d05..43fc15e 100644
--- a/gtksourceview/gtktextregion.h
+++ b/gtksourceview/gtktextregion.h
@@ -40,44 +40,58 @@ struct _GtkTextRegionIterator {
 	gpointer dummy3;
 };
 
+G_GNUC_INTERNAL
 GtkTextRegion *gtk_text_region_new                          (GtkTextBuffer *buffer);
+
+G_GNUC_INTERNAL
 void           gtk_text_region_destroy                      (GtkTextRegion *region,
 							     gboolean       delete_marks);
 
+G_GNUC_INTERNAL
 GtkTextBuffer *gtk_text_region_get_buffer                   (GtkTextRegion *region);
 
+G_GNUC_INTERNAL
 void           gtk_text_region_add                          (GtkTextRegion     *region,
 							     const GtkTextIter *_start,
 							     const GtkTextIter *_end);
 
+G_GNUC_INTERNAL
 void           gtk_text_region_subtract                     (GtkTextRegion     *region,
 							     const GtkTextIter *_start,
 							     const GtkTextIter *_end);
 
+G_GNUC_INTERNAL
 gint           gtk_text_region_subregions                   (GtkTextRegion *region);
 
+G_GNUC_INTERNAL
 gboolean       gtk_text_region_nth_subregion                (GtkTextRegion *region,
 							     guint          subregion,
 							     GtkTextIter   *start,
 							     GtkTextIter   *end);
 
+G_GNUC_INTERNAL
 GtkTextRegion *gtk_text_region_intersect                    (GtkTextRegion     *region,
 							     const GtkTextIter *_start,
 							     const GtkTextIter *_end);
 
+G_GNUC_INTERNAL
 void           gtk_text_region_get_iterator                 (GtkTextRegion         *region,
                                                              GtkTextRegionIterator *iter,
                                                              guint                  start);
 
+G_GNUC_INTERNAL
 gboolean       gtk_text_region_iterator_is_end              (GtkTextRegionIterator *iter);
 
 /* Returns FALSE if iterator is the end iterator */
+G_GNUC_INTERNAL
 gboolean       gtk_text_region_iterator_next	            (GtkTextRegionIterator *iter);
 
+G_GNUC_INTERNAL
 void           gtk_text_region_iterator_get_subregion       (GtkTextRegionIterator *iter,
 							     GtkTextIter           *start,
 							     GtkTextIter           *end);
 
+G_GNUC_INTERNAL
 void           gtk_text_region_debug_print                  (GtkTextRegion *region);
 
 G_END_DECLS



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