[epiphany] ephy-web-view: status message should be const



commit 74ab4a3a9802006edd99e21e85e688593bce93be
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Jun 22 09:26:52 2012 +0200

    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 6c669f7..86599c5 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 5f7cd95..bd82baa 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 7355618..acf9751 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 398285a..194e0fa 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,



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