aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c2
-rw-r--r--embed/ephy-embed.h4
-rw-r--r--embed/mozilla/mozilla-embed.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 458849a2c..ae6ea6d74 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -647,7 +647,7 @@ ephy_embed_go_up (EphyEmbed *embed)
*
* Return value: the title of the web page displayed in @embed
**/
-char *
+const char *
ephy_embed_get_title (EphyEmbed *embed)
{
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 7dffe063d..70058eec6 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -196,7 +196,7 @@ struct _EphyEmbedIface
void (* go_forward) (EphyEmbed *embed);
void (* go_up) (EphyEmbed *embed);
- char * (* get_title) (EphyEmbed *embed);
+ const char * (* get_title) (EphyEmbed *embed);
char * (* get_location) (EphyEmbed *embed,
gboolean toplevel);
char * (* get_link_message) (EphyEmbed *embed);
@@ -278,7 +278,7 @@ void ephy_embed_stop_load (EphyEmbed *embed);
void ephy_embed_reload (EphyEmbed *embed,
gboolean force);
-char *ephy_embed_get_title (EphyEmbed *embed);
+const char *ephy_embed_get_title (EphyEmbed *embed);
char *ephy_embed_get_location (EphyEmbed *embed,
gboolean toplevel);
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 2031ae9df..7adbcceb6 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -622,10 +622,10 @@ impl_go_up (EphyEmbed *embed)
ephy_embed_load_url (embed, parent_uri.get ());
}
-static char *
+static const char *
impl_get_title (EphyEmbed *embed)
{
- return gtk_moz_embed_get_title (GTK_MOZ_EMBED (embed));
+ return MOZILLA_EMBED (embed)->priv->title;
}
static char *