Commit 90884acb authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent ebb0afbd
......@@ -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,
......
......@@ -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
......
......@@ -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
......
......@@ -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,
......
......@@ -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
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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);
......
......@@ -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);
......
......@@ -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,
......
......@@ -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);
......
......@@ -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
......
......@@ -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
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment