[gnome-builder] gcc: don't use G_GNUC_CONST for GType functions



commit 90884acbb6cf2f6ab9fb2c8f0c820d279300b909
Author: Christian Hergert <christian hergert me>
Date:   Wed Dec 24 18:33:15 2014 -0800

    gcc: don't use G_GNUC_CONST for GType functions
    
    It's actually not safe to do this, so we'll just remove the potential
    const caching of these type registration functions.

 src/animation/gb-animation.h                       |    4 ++--
 src/app/gb-application.h                           |    2 +-
 src/auto-indent/gb-source-auto-indenter-c.h        |    2 +-
 src/auto-indent/gb-source-auto-indenter.h          |    2 +-
 .../gb-source-code-assistant-renderer.h            |    2 +-
 src/code-assistant/gb-source-code-assistant.h      |    2 +-
 src/commands/gb-command-bar-item.h                 |    2 +-
 src/commands/gb-command-bar.h                      |    2 +-
 src/commands/gb-command-gaction-provider.h         |    2 +-
 src/commands/gb-command-vim-provider.h             |    2 +-
 src/commands/gb-command-vim.h                      |    2 +-
 src/editor/gb-editor-document.h                    |    2 +-
 src/editor/gb-editor-file-mark.h                   |    2 +-
 src/editor/gb-editor-file-marks.h                  |    2 +-
 src/editor/gb-editor-navigation-item.h             |    2 +-
 src/editor/gb-editor-settings-widget.h             |    2 +-
 src/editor/gb-source-change-gutter-renderer.h      |    2 +-
 src/editor/gb-source-change-monitor.h              |    2 +-
 src/editor/gb-source-formatter.h                   |    2 +-
 src/editor/gb-source-search-highlighter.h          |    2 +-
 src/editor/gb-source-view.h                        |    2 +-
 src/gca/gca-diagnostics.h                          |    6 +++---
 src/gca/gca-service.h                              |    6 +++---
 src/gd/gd-tagged-entry.h                           |    4 ++--
 src/gedit/gedit-close-button.h                     |    2 +-
 src/gedit/gedit-menu-stack-switcher.h              |    2 +-
 src/keybindings/gb-keybindings.h                   |    2 +-
 src/navigation/gb-navigation-item.h                |    2 +-
 src/preferences/gb-preferences-page-editor.h       |    2 +-
 src/preferences/gb-preferences-page-git.h          |    2 +-
 src/preferences/gb-preferences-page-language.h     |    2 +-
 src/preferences/gb-preferences-window.h            |    2 +-
 src/resources/snippets/chdr.snippets               |    2 +-
 src/snippets/gb-source-snippet-chunk.h             |    2 +-
 src/snippets/gb-source-snippet-completion-item.h   |    2 +-
 .../gb-source-snippet-completion-provider.h        |    2 +-
 src/snippets/gb-source-snippet-context.h           |    2 +-
 src/snippets/gb-source-snippet-parser.h            |    2 +-
 src/snippets/gb-source-snippet.h                   |    2 +-
 src/snippets/gb-source-snippets-manager.h          |    2 +-
 src/snippets/gb-source-snippets.h                  |    2 +-
 src/theatrics/gb-box-theatric.h                    |    2 +-
 src/tree/gb-tree-builder.h                         |    2 +-
 src/tree/gb-tree-node.h                            |    2 +-
 src/tree/gb-tree.h                                 |    2 +-
 src/workbench/gb-workspace.h                       |    2 +-
 46 files changed, 52 insertions(+), 52 deletions(-)
---
diff --git a/src/animation/gb-animation.h b/src/animation/gb-animation.h
index aac892f..d2c860c 100644
--- a/src/animation/gb-animation.h
+++ b/src/animation/gb-animation.h
@@ -62,8 +62,8 @@ struct _GbAnimationClass
   GInitiallyUnownedClass parent_class;
 };
 
-GType        gb_animation_get_type      (void) G_GNUC_CONST;
-GType        gb_animation_mode_get_type (void) G_GNUC_CONST;
+GType        gb_animation_get_type      (void);
+GType        gb_animation_mode_get_type (void);
 void         gb_animation_start         (GbAnimation      *animation);
 void         gb_animation_stop          (GbAnimation      *animation);
 void         gb_animation_add_property  (GbAnimation      *animation,
diff --git a/src/app/gb-application.h b/src/app/gb-application.h
index 16dd7bf..24adbed 100644
--- a/src/app/gb-application.h
+++ b/src/app/gb-application.h
@@ -48,7 +48,7 @@ struct _GbApplicationClass
   GtkApplicationClass parent_class;
 };
 
-GType gb_application_get_type (void) G_GNUC_CONST;
+GType gb_application_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/auto-indent/gb-source-auto-indenter-c.h b/src/auto-indent/gb-source-auto-indenter-c.h
index bc81883..8939e5d 100644
--- a/src/auto-indent/gb-source-auto-indenter-c.h
+++ b/src/auto-indent/gb-source-auto-indenter-c.h
@@ -49,7 +49,7 @@ struct _GbSourceAutoIndenterCClass
 };
 
 GbSourceAutoIndenter *gb_source_auto_indenter_c_new      (void);
-GType                 gb_source_auto_indenter_c_get_type (void) G_GNUC_CONST;
+GType                 gb_source_auto_indenter_c_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/auto-indent/gb-source-auto-indenter.h b/src/auto-indent/gb-source-auto-indenter.h
index fbfeb86..283c276 100644
--- a/src/auto-indent/gb-source-auto-indenter.h
+++ b/src/auto-indent/gb-source-auto-indenter.h
@@ -62,7 +62,7 @@ struct _GbSourceAutoIndenterClass
   gpointer padding[6];
 };
 
-GType     gb_source_auto_indenter_get_type   (void) G_GNUC_CONST;
+GType     gb_source_auto_indenter_get_type   (void);
 gboolean  gb_source_auto_indenter_is_trigger (GbSourceAutoIndenter *indenter,
                                               GdkEventKey          *event);
 gchar    *gb_source_auto_indenter_format     (GbSourceAutoIndenter *indenter,
diff --git a/src/code-assistant/gb-source-code-assistant-renderer.h 
b/src/code-assistant/gb-source-code-assistant-renderer.h
index 5114cc7..7da5f4c 100644
--- a/src/code-assistant/gb-source-code-assistant-renderer.h
+++ b/src/code-assistant/gb-source-code-assistant-renderer.h
@@ -48,7 +48,7 @@ struct _GbSourceCodeAssistantRendererClass
   GtkSourceGutterRendererPixbufClass parent_class;
 };
 
-GType gb_source_code_assistant_renderer_get_type (void) G_GNUC_CONST;
+GType gb_source_code_assistant_renderer_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/code-assistant/gb-source-code-assistant.h b/src/code-assistant/gb-source-code-assistant.h
index f646ff0..e295a83 100644
--- a/src/code-assistant/gb-source-code-assistant.h
+++ b/src/code-assistant/gb-source-code-assistant.h
@@ -51,7 +51,7 @@ struct _GbSourceCodeAssistantClass
   void (*changed) (GbSourceCodeAssistant *assistant);
 };
 
-GType                  gb_source_code_assistant_get_type        (void) G_GNUC_CONST;
+GType                  gb_source_code_assistant_get_type        (void);
 GbSourceCodeAssistant *gb_source_code_assistant_new             (GtkTextBuffer         *buffer);
 GArray                *gb_source_code_assistant_get_diagnostics (GbSourceCodeAssistant *assistant);
 
diff --git a/src/commands/gb-command-bar-item.h b/src/commands/gb-command-bar-item.h
index 7f70d45..2aa4d72 100644
--- a/src/commands/gb-command-bar-item.h
+++ b/src/commands/gb-command-bar-item.h
@@ -50,7 +50,7 @@ struct _GbCommandBarItemClass
   GtkBinClass parent;
 };
 
-GType      gb_command_bar_item_get_type   (void) G_GNUC_CONST;
+GType      gb_command_bar_item_get_type   (void);
 GtkWidget *gb_command_bar_item_new        (GbCommandResult  *result);
 GtkWidget *gb_command_bar_item_get_result (GbCommandBarItem *item);
 
diff --git a/src/commands/gb-command-bar.h b/src/commands/gb-command-bar.h
index 4c8d66f..27cb3b9 100644
--- a/src/commands/gb-command-bar.h
+++ b/src/commands/gb-command-bar.h
@@ -52,7 +52,7 @@ struct _GbCommandBarClass
                         GtkDirectionType dir);
 };
 
-GType      gb_command_bar_get_type (void) G_GNUC_CONST;
+GType      gb_command_bar_get_type (void);
 GtkWidget *gb_command_bar_new      (void);
 void       gb_command_bar_show     (GbCommandBar *bar);
 void       gb_command_bar_hide     (GbCommandBar *bar);
diff --git a/src/commands/gb-command-gaction-provider.h b/src/commands/gb-command-gaction-provider.h
index 622700d..a9a0a80 100644
--- a/src/commands/gb-command-gaction-provider.h
+++ b/src/commands/gb-command-gaction-provider.h
@@ -48,7 +48,7 @@ struct _GbCommandGactionProviderClass
   GbCommandProviderClass parent;
 };
 
-GType              gb_command_gaction_provider_get_type (void) G_GNUC_CONST;
+GType              gb_command_gaction_provider_get_type (void);
 GbCommandProvider *gb_command_gaction_provider_new      (GbWorkbench *workbench);
 
 G_END_DECLS
diff --git a/src/commands/gb-command-vim-provider.h b/src/commands/gb-command-vim-provider.h
index a4a0886..994f987 100644
--- a/src/commands/gb-command-vim-provider.h
+++ b/src/commands/gb-command-vim-provider.h
@@ -48,7 +48,7 @@ struct _GbCommandVimProviderClass
   GbCommandProviderClass parent;
 };
 
-GType              gb_command_vim_provider_get_type (void) G_GNUC_CONST;
+GType              gb_command_vim_provider_get_type (void);
 GbCommandProvider *gb_command_vim_provider_new      (GbWorkbench *workbench);
 
 G_END_DECLS
diff --git a/src/commands/gb-command-vim.h b/src/commands/gb-command-vim.h
index fef73bb..f134f38 100644
--- a/src/commands/gb-command-vim.h
+++ b/src/commands/gb-command-vim.h
@@ -48,7 +48,7 @@ struct _GbCommandVimClass
   GbCommandClass parent;
 };
 
-GType gb_command_vim_get_type (void) G_GNUC_CONST;
+GType gb_command_vim_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/editor/gb-editor-document.h b/src/editor/gb-editor-document.h
index 2833fe4..b86f3ac 100644
--- a/src/editor/gb-editor-document.h
+++ b/src/editor/gb-editor-document.h
@@ -57,7 +57,7 @@ struct _GbEditorDocumentClass
 };
 
 GbEditorDocument      *gb_editor_document_new                          (void);
-GType                  gb_editor_document_get_type                     (void) G_GNUC_CONST;
+GType                  gb_editor_document_get_type                     (void);
 GtkSourceFile         *gb_editor_document_get_file                     (GbEditorDocument       *document);
 void                   gb_editor_document_set_file                     (GbEditorDocument       *document,
                                                                         GtkSourceFile          *file);
diff --git a/src/editor/gb-editor-file-mark.h b/src/editor/gb-editor-file-mark.h
index ef61e84..411b00c 100644
--- a/src/editor/gb-editor-file-mark.h
+++ b/src/editor/gb-editor-file-mark.h
@@ -48,7 +48,7 @@ struct _GbEditorFileMarkClass
   GObjectClass parent;
 };
 
-GType             gb_editor_file_mark_get_type   (void) G_GNUC_CONST;
+GType             gb_editor_file_mark_get_type   (void);
 GbEditorFileMark *gb_editor_file_mark_new        (GFile            *file,
                                                   guint             line,
                                                   guint             column);
diff --git a/src/editor/gb-editor-file-marks.h b/src/editor/gb-editor-file-marks.h
index e035e25..3c1f2f6 100644
--- a/src/editor/gb-editor-file-marks.h
+++ b/src/editor/gb-editor-file-marks.h
@@ -48,7 +48,7 @@ struct _GbEditorFileMarksClass
   GObjectClass parent;
 };
 
-GType              gb_editor_file_marks_get_type     (void) G_GNUC_CONST;
+GType              gb_editor_file_marks_get_type     (void);
 GbEditorFileMarks *gb_editor_file_marks_new          (void);
 GbEditorFileMarks *gb_editor_file_marks_get_default  (void);
 GbEditorFileMark  *gb_editor_file_marks_get_for_file (GbEditorFileMarks    *marks,
diff --git a/src/editor/gb-editor-navigation-item.h b/src/editor/gb-editor-navigation-item.h
index f7ced6f..f9d8b5f 100644
--- a/src/editor/gb-editor-navigation-item.h
+++ b/src/editor/gb-editor-navigation-item.h
@@ -53,7 +53,7 @@ struct _GbEditorNavigationItemClass
 GFile                *gb_editor_navigation_item_get_file        (GbEditorNavigationItem *item);
 guint                 gb_editor_navigation_item_get_line        (GbEditorNavigationItem *item);
 guint                 gb_editor_navigation_item_get_line_offset (GbEditorNavigationItem *item);
-GType                 gb_editor_navigation_item_get_type        (void) G_GNUC_CONST;
+GType                 gb_editor_navigation_item_get_type        (void);
 GbNavigationItem     *gb_editor_navigation_item_new             (GFile                  *file,
                                                                  guint                   line,
                                                                  guint                   line_offset);
diff --git a/src/editor/gb-editor-settings-widget.h b/src/editor/gb-editor-settings-widget.h
index f725a60..6dbbba5 100644
--- a/src/editor/gb-editor-settings-widget.h
+++ b/src/editor/gb-editor-settings-widget.h
@@ -48,7 +48,7 @@ struct _GbEditorSettingsWidgetClass
   GtkGridClass parent;
 };
 
-GType gb_editor_settings_widget_get_type (void) G_GNUC_CONST;
+GType gb_editor_settings_widget_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/editor/gb-source-change-gutter-renderer.h b/src/editor/gb-source-change-gutter-renderer.h
index 1feaa77..e1735ba 100644
--- a/src/editor/gb-source-change-gutter-renderer.h
+++ b/src/editor/gb-source-change-gutter-renderer.h
@@ -48,7 +48,7 @@ struct _GbSourceChangeGutterRendererClass
   GtkSourceGutterRendererClass parent_class;
 };
 
-GType gb_source_change_gutter_renderer_get_type (void) G_GNUC_CONST;
+GType gb_source_change_gutter_renderer_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/editor/gb-source-change-monitor.h b/src/editor/gb-source-change-monitor.h
index d107849..d438913 100644
--- a/src/editor/gb-source-change-monitor.h
+++ b/src/editor/gb-source-change-monitor.h
@@ -57,7 +57,7 @@ struct _GbSourceChangeMonitorClass
   void (*changed) (GbSourceChangeMonitor *monitor);
 };
 
-GType                  gb_source_change_monitor_get_type (void) G_GNUC_CONST;
+GType                  gb_source_change_monitor_get_type (void);
 GbSourceChangeMonitor *gb_source_change_monitor_new      (GtkTextBuffer         *buffer);
 GFile                 *gb_source_change_monitor_get_file (GbSourceChangeMonitor *monitor);
 void                   gb_source_change_monitor_set_file (GbSourceChangeMonitor *monitor,
diff --git a/src/editor/gb-source-formatter.h b/src/editor/gb-source-formatter.h
index c584d50..7c4cc85 100644
--- a/src/editor/gb-source-formatter.h
+++ b/src/editor/gb-source-formatter.h
@@ -49,7 +49,7 @@ struct _GbSourceFormatterClass
   GObjectClass parent_class;
 };
 
-GType              gb_source_formatter_get_type          (void) G_GNUC_CONST;
+GType              gb_source_formatter_get_type          (void);
 GbSourceFormatter *gb_source_formatter_new_from_language (GtkSourceLanguage  *language);
 gboolean           gb_source_formatter_format            (GbSourceFormatter  *formatter,
                                                           const gchar        *input,
diff --git a/src/editor/gb-source-search-highlighter.h b/src/editor/gb-source-search-highlighter.h
index dd2a603..28e520a 100644
--- a/src/editor/gb-source-search-highlighter.h
+++ b/src/editor/gb-source-search-highlighter.h
@@ -50,7 +50,7 @@ struct _GbSourceSearchHighlighterClass
   GObjectClass parent_class;
 };
 
-GType                      gb_source_search_highlighter_get_type            (void) G_GNUC_CONST;
+GType                      gb_source_search_highlighter_get_type            (void);
 void                       gb_source_search_highlighter_set_search_context  (GbSourceSearchHighlighter 
*highlighter,
                                                                              GtkSourceSearchContext    
*search_context);
 void                       gb_source_search_highlighter_set_search_settings (GbSourceSearchHighlighter 
*highlighter,
diff --git a/src/editor/gb-source-view.h b/src/editor/gb-source-view.h
index b4e580d..b65c0b8 100644
--- a/src/editor/gb-source-view.h
+++ b/src/editor/gb-source-view.h
@@ -75,7 +75,7 @@ void                  gb_source_view_clear_snippets       (GbSourceView
 GbSourceAutoIndenter *gb_source_view_get_auto_indenter    (GbSourceView         *view);
 gboolean              gb_source_view_get_overwrite_braces (GbSourceView         *view);
 gboolean              gb_source_view_get_show_shadow      (GbSourceView         *view);
-GType                 gb_source_view_get_type             (void) G_GNUC_CONST;
+GType                 gb_source_view_get_type             (void);
 void                  gb_source_view_indent_selection     (GbSourceView         *view);
 void                  gb_source_view_push_snippet         (GbSourceView         *view,
                                                            GbSourceSnippet      *snippet);
diff --git a/src/gca/gca-diagnostics.h b/src/gca/gca-diagnostics.h
index fe4ee65..23af79e 100644
--- a/src/gca/gca-diagnostics.h
+++ b/src/gca/gca-diagnostics.h
@@ -34,7 +34,7 @@ struct _GcaDiagnosticsIface
 
 };
 
-GType gca_diagnostics_get_type (void) G_GNUC_CONST;
+GType gca_diagnostics_get_type (void);
 
 GDBusInterfaceInfo *gca_diagnostics_interface_info (void);
 guint gca_diagnostics_override_properties (GObjectClass *klass, guint property_id_begin);
@@ -94,7 +94,7 @@ struct _GcaDiagnosticsProxyClass
   GDBusProxyClass parent_class;
 };
 
-GType gca_diagnostics_proxy_get_type (void) G_GNUC_CONST;
+GType gca_diagnostics_proxy_get_type (void);
 
 void gca_diagnostics_proxy_new (
     GDBusConnection     *connection,
@@ -160,7 +160,7 @@ struct _GcaDiagnosticsSkeletonClass
   GDBusInterfaceSkeletonClass parent_class;
 };
 
-GType gca_diagnostics_skeleton_get_type (void) G_GNUC_CONST;
+GType gca_diagnostics_skeleton_get_type (void);
 
 GcaDiagnostics *gca_diagnostics_skeleton_new (void);
 
diff --git a/src/gca/gca-service.h b/src/gca/gca-service.h
index 60c551f..a9717b7 100644
--- a/src/gca/gca-service.h
+++ b/src/gca/gca-service.h
@@ -43,7 +43,7 @@ struct _GcaServiceIface
 
 };
 
-GType gca_service_get_type (void) G_GNUC_CONST;
+GType gca_service_get_type (void);
 
 GDBusInterfaceInfo *gca_service_interface_info (void);
 guint gca_service_override_properties (GObjectClass *klass, guint property_id_begin);
@@ -133,7 +133,7 @@ struct _GcaServiceProxyClass
   GDBusProxyClass parent_class;
 };
 
-GType gca_service_proxy_get_type (void) G_GNUC_CONST;
+GType gca_service_proxy_get_type (void);
 
 void gca_service_proxy_new (
     GDBusConnection     *connection,
@@ -199,7 +199,7 @@ struct _GcaServiceSkeletonClass
   GDBusInterfaceSkeletonClass parent_class;
 };
 
-GType gca_service_skeleton_get_type (void) G_GNUC_CONST;
+GType gca_service_skeleton_get_type (void);
 
 GcaService *gca_service_skeleton_new (void);
 
diff --git a/src/gd/gd-tagged-entry.h b/src/gd/gd-tagged-entry.h
index ba9f673..87d9da4 100644
--- a/src/gd/gd-tagged-entry.h
+++ b/src/gd/gd-tagged-entry.h
@@ -75,7 +75,7 @@ struct _GdTaggedEntryTagClass
   GObjectClass parent_class;
 };
 
-GType gd_tagged_entry_get_type (void) G_GNUC_CONST;
+GType gd_tagged_entry_get_type (void);
 
 GdTaggedEntry *gd_tagged_entry_new (void);
 
@@ -93,7 +93,7 @@ gboolean gd_tagged_entry_add_tag (GdTaggedEntry    *self,
 gboolean gd_tagged_entry_remove_tag (GdTaggedEntry *self,
                                      GdTaggedEntryTag *tag);
 
-GType gd_tagged_entry_tag_get_type (void) G_GNUC_CONST;
+GType gd_tagged_entry_tag_get_type (void);
 
 GdTaggedEntryTag *gd_tagged_entry_tag_new (const gchar *label);
 
diff --git a/src/gedit/gedit-close-button.h b/src/gedit/gedit-close-button.h
index 791a730..d0cd02f 100644
--- a/src/gedit/gedit-close-button.h
+++ b/src/gedit/gedit-close-button.h
@@ -50,7 +50,7 @@ struct _GeditCloseButtonClass
        GeditCloseButtonClassPrivate *priv;
 };
 
-GType            gedit_close_button_get_type (void) G_GNUC_CONST;
+GType            gedit_close_button_get_type (void);
 
 GtkWidget       *gedit_close_button_new      (void);
 
diff --git a/src/gedit/gedit-menu-stack-switcher.h b/src/gedit/gedit-menu-stack-switcher.h
index ae8f70b..e2727de 100644
--- a/src/gedit/gedit-menu-stack-switcher.h
+++ b/src/gedit/gedit-menu-stack-switcher.h
@@ -55,7 +55,7 @@ struct _GeditMenuStackSwitcherClass
   void (*_gedit_reserved4) (void);
 };
 
-GType        gedit_menu_stack_switcher_get_type   (void) G_GNUC_CONST;
+GType        gedit_menu_stack_switcher_get_type   (void);
 
 GtkWidget *  gedit_menu_stack_switcher_new           (void);
 
diff --git a/src/keybindings/gb-keybindings.h b/src/keybindings/gb-keybindings.h
index 5edc4da..98717b0 100644
--- a/src/keybindings/gb-keybindings.h
+++ b/src/keybindings/gb-keybindings.h
@@ -48,7 +48,7 @@ struct _GbKeybindingsClass
   GObjectClass parent_class;
 };
 
-GType          gb_keybindings_get_type   (void) G_GNUC_CONST;
+GType          gb_keybindings_get_type   (void);
 GbKeybindings *gb_keybindings_new        (void);
 gboolean       gb_keybindings_load_bytes (GbKeybindings   *keybindings,
                                           GBytes          *bytes,
diff --git a/src/navigation/gb-navigation-item.h b/src/navigation/gb-navigation-item.h
index 091bb19..854e7a8 100644
--- a/src/navigation/gb-navigation-item.h
+++ b/src/navigation/gb-navigation-item.h
@@ -52,7 +52,7 @@ struct _GbNavigationItemClass
   void (*activate) (GbNavigationItem *item);
 };
 
-GType             gb_navigation_item_get_type      (void) G_GNUC_CONST;
+GType             gb_navigation_item_get_type      (void);
 GbNavigationItem *gb_navigation_item_new           (const gchar      *label);
 void              gb_navigation_item_activate      (GbNavigationItem *item);
 const gchar      *gb_navigation_item_get_label     (GbNavigationItem *item);
diff --git a/src/preferences/gb-preferences-page-editor.h b/src/preferences/gb-preferences-page-editor.h
index 4357b10..9b40f4a 100644
--- a/src/preferences/gb-preferences-page-editor.h
+++ b/src/preferences/gb-preferences-page-editor.h
@@ -48,7 +48,7 @@ struct _GbPreferencesPageEditorClass
   GbPreferencesPageClass parent;
 };
 
-GType gb_preferences_page_editor_get_type (void) G_GNUC_CONST;
+GType gb_preferences_page_editor_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/preferences/gb-preferences-page-git.h b/src/preferences/gb-preferences-page-git.h
index 7992ef6..592007c 100644
--- a/src/preferences/gb-preferences-page-git.h
+++ b/src/preferences/gb-preferences-page-git.h
@@ -48,7 +48,7 @@ struct _GbPreferencesPageGitClass
   GbPreferencesPageClass parent;
 };
 
-GType gb_preferences_page_git_get_type (void) G_GNUC_CONST;
+GType gb_preferences_page_git_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/preferences/gb-preferences-page-language.h b/src/preferences/gb-preferences-page-language.h
index e39fe9b..b1eb256 100644
--- a/src/preferences/gb-preferences-page-language.h
+++ b/src/preferences/gb-preferences-page-language.h
@@ -48,7 +48,7 @@ struct _GbPreferencesPageLanguageClass
   GbPreferencesPageClass parent;
 };
 
-GType gb_preferences_page_language_get_type (void) G_GNUC_CONST;
+GType gb_preferences_page_language_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/preferences/gb-preferences-window.h b/src/preferences/gb-preferences-window.h
index cf0d6a5..ba879a4 100644
--- a/src/preferences/gb-preferences-window.h
+++ b/src/preferences/gb-preferences-window.h
@@ -50,7 +50,7 @@ struct _GbPreferencesWindowClass
   void (*close) (GbPreferencesWindow *window);
 };
 
-GType      gb_preferences_window_get_type (void) G_GNUC_CONST;
+GType      gb_preferences_window_get_type (void);
 GtkWidget *gb_preferences_window_new      (void);
 
 G_END_DECLS
diff --git a/src/resources/snippets/chdr.snippets b/src/resources/snippets/chdr.snippets
index 4ccfaa2..28deeb6 100644
--- a/src/resources/snippets/chdr.snippets
+++ b/src/resources/snippets/chdr.snippets
@@ -71,7 +71,7 @@ snippet ginterface
                GTypeInterface parent;
        };
 
-       GType ${$1|functify}_get_type (void) G_GNUC_CONST;
+       GType ${$1|functify}_get_type (void);
 
        G_END_DECLS
 
diff --git a/src/snippets/gb-source-snippet-chunk.h b/src/snippets/gb-source-snippet-chunk.h
index 27fdd42..765199c 100644
--- a/src/snippets/gb-source-snippet-chunk.h
+++ b/src/snippets/gb-source-snippet-chunk.h
@@ -52,7 +52,7 @@ struct _GbSourceSnippetChunkClass
 
 GbSourceSnippetChunk   *gb_source_snippet_chunk_new          (void);
 GbSourceSnippetChunk   *gb_source_snippet_chunk_copy         (GbSourceSnippetChunk   *chunk);
-GType                   gb_source_snippet_chunk_get_type     (void) G_GNUC_CONST;
+GType                   gb_source_snippet_chunk_get_type     (void);
 GbSourceSnippetContext *gb_source_snippet_chunk_get_context  (GbSourceSnippetChunk   *chunk);
 void                    gb_source_snippet_chunk_set_context  (GbSourceSnippetChunk   *chunk,
                                                               GbSourceSnippetContext *context);
diff --git a/src/snippets/gb-source-snippet-completion-item.h 
b/src/snippets/gb-source-snippet-completion-item.h
index 7579ac4..73a7ab6 100644
--- a/src/snippets/gb-source-snippet-completion-item.h
+++ b/src/snippets/gb-source-snippet-completion-item.h
@@ -50,7 +50,7 @@ struct _GbSourceSnippetCompletionItemClass
   GObjectClass parent_class;
 };
 
-GType                        gb_source_snippet_completion_item_get_type    (void) G_GNUC_CONST;
+GType                        gb_source_snippet_completion_item_get_type    (void);
 GtkSourceCompletionProposal *gb_source_snippet_completion_item_new         (GbSourceSnippet *snippet);
 GbSourceSnippet             *gb_source_snippet_completion_item_get_snippet (GbSourceSnippetCompletionItem 
*item);
 void                         gb_source_snippet_completion_item_set_snippet (GbSourceSnippetCompletionItem 
*item,
diff --git a/src/snippets/gb-source-snippet-completion-provider.h 
b/src/snippets/gb-source-snippet-completion-provider.h
index 3914a7d..6af4208 100644
--- a/src/snippets/gb-source-snippet-completion-provider.h
+++ b/src/snippets/gb-source-snippet-completion-provider.h
@@ -51,7 +51,7 @@ struct _GbSourceSnippetCompletionProviderClass
   GObjectClass parent_class;
 };
 
-GType                        gb_source_snippet_completion_provider_get_type (void) G_GNUC_CONST;
+GType                        gb_source_snippet_completion_provider_get_type (void);
 GtkSourceCompletionProvider *gb_source_snippet_completion_provider_new      (GbSourceView     *source_view,
                                                                              GbSourceSnippets *snippets);
 
diff --git a/src/snippets/gb-source-snippet-context.h b/src/snippets/gb-source-snippet-context.h
index f2f9f29..45b6c80 100644
--- a/src/snippets/gb-source-snippet-context.h
+++ b/src/snippets/gb-source-snippet-context.h
@@ -48,7 +48,7 @@ struct _GbSourceSnippetContextClass
   GObjectClass parent_class;
 };
 
-GType                   gb_source_snippet_context_get_type        (void) G_GNUC_CONST;
+GType                   gb_source_snippet_context_get_type        (void);
 GbSourceSnippetContext *gb_source_snippet_context_new             (void);
 void                    gb_source_snippet_context_emit_changed    (GbSourceSnippetContext *context);
 void                    gb_source_snippet_context_clear_variables (GbSourceSnippetContext *context);
diff --git a/src/snippets/gb-source-snippet-parser.h b/src/snippets/gb-source-snippet-parser.h
index b11b939..46318ed 100644
--- a/src/snippets/gb-source-snippet-parser.h
+++ b/src/snippets/gb-source-snippet-parser.h
@@ -48,7 +48,7 @@ struct _GbSourceSnippetParserClass
   GObjectClass parent_class;
 };
 
-GType                  gb_source_snippet_parser_get_type       (void) G_GNUC_CONST;
+GType                  gb_source_snippet_parser_get_type       (void);
 GbSourceSnippetParser *gb_source_snippet_parser_new            (void);
 gboolean               gb_source_snippet_parser_load_from_file (GbSourceSnippetParser  *parser,
                                                                 GFile                  *file,
diff --git a/src/snippets/gb-source-snippet.h b/src/snippets/gb-source-snippet.h
index ba63228..1e6112a 100644
--- a/src/snippets/gb-source-snippet.h
+++ b/src/snippets/gb-source-snippet.h
@@ -53,7 +53,7 @@ struct _GbSourceSnippetClass
 
 GbSourceSnippet        *gb_source_snippet_new             (const gchar          *trigger);
 GbSourceSnippet        *gb_source_snippet_copy            (GbSourceSnippet      *snippet);
-GType                   gb_source_snippet_get_type        (void) G_GNUC_CONST;
+GType                   gb_source_snippet_get_type        (void);
 const gchar            *gb_source_snippet_get_trigger     (GbSourceSnippet      *snippet);
 void                    gb_source_snippet_set_trigger     (GbSourceSnippet      *snippet,
                                                            const gchar          *trigger);
diff --git a/src/snippets/gb-source-snippets-manager.h b/src/snippets/gb-source-snippets-manager.h
index 1928660..ae083e7 100644
--- a/src/snippets/gb-source-snippets-manager.h
+++ b/src/snippets/gb-source-snippets-manager.h
@@ -50,7 +50,7 @@ struct _GbSourceSnippetsManagerClass
   GObjectClass parent_class;
 };
 
-GType                    gb_source_snippets_manager_get_type         (void) G_GNUC_CONST;
+GType                    gb_source_snippets_manager_get_type         (void);
 GbSourceSnippetsManager *gb_source_snippets_manager_get_default      (void);
 GbSourceSnippets        *gb_source_snippets_manager_get_for_language (GbSourceSnippetsManager *manager,
                                                                       GtkSourceLanguage       *language);
diff --git a/src/snippets/gb-source-snippets.h b/src/snippets/gb-source-snippets.h
index b283bed..c3aef93 100644
--- a/src/snippets/gb-source-snippets.h
+++ b/src/snippets/gb-source-snippets.h
@@ -56,7 +56,7 @@ void              gb_source_snippets_clear          (GbSourceSnippets *snippets)
 void              gb_source_snippets_merge          (GbSourceSnippets *snippets,
                                                      GbSourceSnippets *other);
 GbSourceSnippets *gb_source_snippets_new            (void);
-GType             gb_source_snippets_get_type       (void) G_GNUC_CONST;
+GType             gb_source_snippets_get_type       (void);
 gboolean          gb_source_snippets_load_from_file (GbSourceSnippets  *snippets,
                                                      GFile             *file,
                                                      GError           **error);
diff --git a/src/theatrics/gb-box-theatric.h b/src/theatrics/gb-box-theatric.h
index 6c3cf59..743ea75 100644
--- a/src/theatrics/gb-box-theatric.h
+++ b/src/theatrics/gb-box-theatric.h
@@ -48,7 +48,7 @@ struct _GbBoxTheatricClass
   GObjectClass parent_class;
 };
 
-GType gb_box_theatric_get_type (void) G_GNUC_CONST;
+GType gb_box_theatric_get_type (void);
 
 G_END_DECLS
 
diff --git a/src/tree/gb-tree-builder.h b/src/tree/gb-tree-builder.h
index efeb3ec..57d6e29 100644
--- a/src/tree/gb-tree-builder.h
+++ b/src/tree/gb-tree-builder.h
@@ -66,7 +66,7 @@ struct _GbTreeBuilderClass
 };
 
 GtkWidget *gb_tree_builder_get_tree        (GbTreeBuilder *builder);
-GType      gb_tree_builder_get_type        (void) G_GNUC_CONST;
+GType      gb_tree_builder_get_type        (void);
 void       gb_tree_builder_build_node      (GbTreeBuilder *builder,
                                             GbTreeNode    *node);
 gboolean   gb_tree_builder_node_activated  (GbTreeBuilder *builder,
diff --git a/src/tree/gb-tree-node.h b/src/tree/gb-tree-node.h
index 24263a9..f899808 100644
--- a/src/tree/gb-tree-node.h
+++ b/src/tree/gb-tree-node.h
@@ -58,7 +58,7 @@ const gchar   *gb_tree_node_get_icon_name (GbTreeNode  *node);
 GObject       *gb_tree_node_get_item      (GbTreeNode  *node);
 GbTreeNode    *gb_tree_node_get_parent    (GbTreeNode  *node);
 GtkTreePath   *gb_tree_node_get_path      (GbTreeNode  *node);
-GType          gb_tree_node_get_type      (void) G_GNUC_CONST;
+GType          gb_tree_node_get_type      (void);
 void           gb_tree_node_prepend       (GbTreeNode  *node,
                                            GbTreeNode  *child);
 void           gb_tree_node_remove        (GbTreeNode  *node,
diff --git a/src/tree/gb-tree.h b/src/tree/gb-tree.h
index 1f75ab4..8b02b4d 100644
--- a/src/tree/gb-tree.h
+++ b/src/tree/gb-tree.h
@@ -57,7 +57,7 @@ GtkUIManager *gb_tree_get_menu_ui    (GbTree        *tree);
 GtkTreePath  *gb_tree_get_path       (GbTree        *tree,
                                       GList         *list);
 GbTreeNode   *gb_tree_get_selected   (GbTree        *tree);
-GType         gb_tree_get_type       (void) G_GNUC_CONST;
+GType         gb_tree_get_type       (void);
 void          gb_tree_rebuild        (GbTree        *tree);
 void          gb_tree_remove_builder (GbTree        *tree,
                                       GbTreeBuilder *builder);
diff --git a/src/workbench/gb-workspace.h b/src/workbench/gb-workspace.h
index 411d57d..46346f3 100644
--- a/src/workbench/gb-workspace.h
+++ b/src/workbench/gb-workspace.h
@@ -46,7 +46,7 @@ struct _GbWorkspaceClass
   GtkBinClass parent_class;
 };
 
-GType         gb_workspace_get_type      (void) G_GNUC_CONST;
+GType         gb_workspace_get_type      (void);
 const gchar  *gb_workspace_get_icon_name (GbWorkspace *workspace);
 void          gb_workspace_set_icon_name (GbWorkspace *workspace,
                                           const gchar *icon_name);


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