From 2d8c8bebf57f9a8f6aaa0a52ca98a1620918bac8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 16 Jan 2010 07:05:16 +0100 Subject: [PATCH] Add G_GNUC_CONST to all Midori type functions --- midori/midori-app.h | 2 +- midori/midori-browser.h | 2 +- midori/midori-extension.h | 2 +- midori/midori-locationaction.h | 2 +- midori/midori-panel.h | 2 +- midori/midori-preferences.h | 2 +- midori/midori-searchaction.h | 2 +- midori/midori-view.h | 2 +- midori/midori-viewable.h | 2 +- midori/midori-websettings.h | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/midori/midori-app.h b/midori/midori-app.h index 1bdc00ef..7c280967 100644 --- a/midori/midori-app.h +++ b/midori/midori-app.h @@ -36,7 +36,7 @@ typedef struct _MidoriApp MidoriApp; typedef struct _MidoriAppClass MidoriAppClass; GType -midori_app_get_type (void); +midori_app_get_type (void) G_GNUC_CONST; MidoriApp* midori_app_new (void); diff --git a/midori/midori-browser.h b/midori/midori-browser.h index 08340280..1b3d8734 100644 --- a/midori/midori-browser.h +++ b/midori/midori-browser.h @@ -75,7 +75,7 @@ struct _MidoriBrowserClass }; GType -midori_browser_get_type (void); +midori_browser_get_type (void) G_GNUC_CONST; MidoriBrowser* midori_browser_new (void); diff --git a/midori/midori-extension.h b/midori/midori-extension.h index 60b7d017..9fceb982 100644 --- a/midori/midori-extension.h +++ b/midori/midori-extension.h @@ -46,7 +46,7 @@ struct _MidoriExtensionClass }; GType -midori_extension_get_type (void); +midori_extension_get_type (void) G_GNUC_CONST; gboolean midori_extension_is_prepared (MidoriExtension* extension); diff --git a/midori/midori-locationaction.h b/midori/midori-locationaction.h index 33c3a39e..2dc56314 100644 --- a/midori/midori-locationaction.h +++ b/midori/midori-locationaction.h @@ -33,7 +33,7 @@ typedef struct _MidoriLocationAction MidoriLocationAction; typedef struct _MidoriLocationActionClass MidoriLocationActionClass; GType -midori_location_action_get_type (void); +midori_location_action_get_type (void) G_GNUC_CONST; void midori_location_action_freeze (MidoriLocationAction* location_action); diff --git a/midori/midori-panel.h b/midori/midori-panel.h index 704fd95e..d9a1fe19 100644 --- a/midori/midori-panel.h +++ b/midori/midori-panel.h @@ -37,7 +37,7 @@ typedef struct _MidoriPanel MidoriPanel; typedef struct _MidoriPanelClass MidoriPanelClass; GType -midori_panel_get_type (void); +midori_panel_get_type (void) G_GNUC_CONST; GtkWidget* midori_panel_new (void); diff --git a/midori/midori-preferences.h b/midori/midori-preferences.h index 3b4ca2ed..89c6f9de 100644 --- a/midori/midori-preferences.h +++ b/midori/midori-preferences.h @@ -40,7 +40,7 @@ struct _MidoriPreferencesClass }; GType -midori_preferences_get_type (void); +midori_preferences_get_type (void) G_GNUC_CONST; GtkWidget* midori_preferences_new (GtkWindow* parent, diff --git a/midori/midori-searchaction.h b/midori/midori-searchaction.h index 760dd4e5..9eb269f4 100644 --- a/midori/midori-searchaction.h +++ b/midori/midori-searchaction.h @@ -33,7 +33,7 @@ typedef struct _MidoriSearchAction MidoriSearchAction; typedef struct _MidoriSearchActionClass MidoriSearchActionClass; GType -midori_search_action_get_type (void); +midori_search_action_get_type (void) G_GNUC_CONST; const gchar* midori_search_action_get_text (MidoriSearchAction* action); diff --git a/midori/midori-view.h b/midori/midori-view.h index a8a74526..d3fa0894 100644 --- a/midori/midori-view.h +++ b/midori/midori-view.h @@ -61,7 +61,7 @@ typedef struct _MidoriView MidoriView; typedef struct _MidoriViewClass MidoriViewClass; GType -midori_view_get_type (void); +midori_view_get_type (void) G_GNUC_CONST; GtkWidget* midori_view_new (KatzeNet* net); diff --git a/midori/midori-viewable.h b/midori/midori-viewable.h index 80a6a108..fca3e603 100644 --- a/midori/midori-viewable.h +++ b/midori/midori-viewable.h @@ -50,7 +50,7 @@ struct _MidoriViewableIface }; GType -midori_viewable_get_type (void); +midori_viewable_get_type (void) G_GNUC_CONST; GtkWidget* midori_viewable_new_from_uri (const gchar* uri); diff --git a/midori/midori-websettings.h b/midori/midori-websettings.h index 0826ad54..ca9f3c9e 100644 --- a/midori/midori-websettings.h +++ b/midori/midori-websettings.h @@ -149,7 +149,7 @@ midori_identity_get_type (void) G_GNUC_CONST; (midori_identity_get_type ()) GType -midori_web_settings_get_type (void); +midori_web_settings_get_type (void) G_GNUC_CONST; MidoriWebSettings* midori_web_settings_new (void); -- 2.39.5