From 51a7dc7dd4e0871d0da50228a163a1b124aeda1c Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 25 Oct 2007 20:00:20 +0000 Subject: Change ephy_embed_get_title to return const char*. Also replace all ephy_tab_get_title by ephy_embed_get_title. svn path=/trunk/; revision=7559 --- embed/ephy-embed.c | 2 +- embed/ephy-embed.h | 4 ++-- embed/mozilla/mozilla-embed.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'embed') 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 * -- cgit v1.2.3