From 74ab4a3a9802006edd99e21e85e688593bce93be Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Fri, 22 Jun 2012 09:26:52 +0200 Subject: ephy-web-view: status message should be const In both ephy_web_view_set_link_message() and ephy_embed_utils_link_message_parse(). --- embed/ephy-embed-utils.c | 4 ++-- embed/ephy-embed-utils.h | 2 +- embed/ephy-web-view.c | 2 +- embed/ephy-web-view.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c index 6c669f7c6..86599c5fe 100644 --- a/embed/ephy-embed-utils.c +++ b/embed/ephy-embed-utils.c @@ -32,8 +32,8 @@ #include "ephy-embed-utils.h" #include "ephy-request-about.h" -char* -ephy_embed_utils_link_message_parse (char *message) +char * +ephy_embed_utils_link_message_parse (const char *message) { char *status_message; diff --git a/embed/ephy-embed-utils.h b/embed/ephy-embed-utils.h index 5f7cd95ce..bd82baa30 100644 --- a/embed/ephy-embed-utils.h +++ b/embed/ephy-embed-utils.h @@ -43,7 +43,7 @@ G_BEGIN_DECLS #define EPHY_WEBKIT_BACK_FORWARD_LIMIT 100 -char* ephy_embed_utils_link_message_parse (char *message); +char* ephy_embed_utils_link_message_parse (const char *message); gboolean ephy_embed_utils_address_has_web_scheme (const char *address); gboolean ephy_embed_utils_address_is_existing_absolute_filename (const char *address); char* ephy_embed_utils_normalize_address (const char *address); diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 7355618bd..acf97518f 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -3547,7 +3547,7 @@ ephy_web_view_get_visibility (EphyWebView *view) **/ void ephy_web_view_set_link_message (EphyWebView *view, - char *link_message) + const char *link_message) { EphyWebViewPrivate *priv = view->priv; diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h index 398285a3e..194e0faeb 100644 --- a/embed/ephy-web-view.h +++ b/embed/ephy-web-view.h @@ -146,7 +146,7 @@ const char * ephy_web_view_get_status_message (EphyWebView const char * ephy_web_view_get_link_message (EphyWebView *view); gboolean ephy_web_view_get_visibility (EphyWebView *view); void ephy_web_view_set_link_message (EphyWebView *view, - char *link_message); + const char *link_message); void ephy_web_view_set_security_level (EphyWebView *view, EphyWebViewSecurityLevel level); void ephy_web_view_set_visibility (EphyWebView *view, -- cgit v1.2.3