diff options
author | Xan Lopez <xan@src.gnome.org> | 2007-10-26 04:00:20 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2007-10-26 04:00:20 +0800 |
commit | 51a7dc7dd4e0871d0da50228a163a1b124aeda1c (patch) | |
tree | fa8d40b6c4fae38fb657b2ef6147579d786d5aec /embed | |
parent | f083f631bc0c22a990c87215583b3237fa886426 (diff) | |
download | gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar.gz gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar.bz2 gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar.lz gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar.xz gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.tar.zst gsoc2013-epiphany-51a7dc7dd4e0871d0da50228a163a1b124aeda1c.zip |
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
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.c | 2 | ||||
-rw-r--r-- | embed/ephy-embed.h | 4 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 4 |
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 * |