Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window-title.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-08-19 13:29:40 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-09-15 13:56:01 (GMT)
commitc4b192c34c4758bd078d1a212d69c6ae5084d6c8 (patch)
treeb5195dc33598e02878de1d9fb46437720f1bfbf2 /shell/ev-window-title.c
parent1133f4bb67226d6de5cfec6af6893e061878442b (diff)
Move part of the EvPageCache to EvDocument
The static data about the document is stored now in EvDocument class
Diffstat (limited to 'shell/ev-window-title.c')
-rw-r--r--shell/ev-window-title.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c
index baafa74..2e28c63 100644
--- a/shell/ev-window-title.c
+++ b/shell/ev-window-title.c
@@ -122,14 +122,11 @@ ev_window_title_update (EvWindowTitle *window_title)
{
GtkWindow *window = GTK_WINDOW (window_title->window);
char *title = NULL, *password_title, *p;
- EvPageCache *page_cache;
if (window_title->document != NULL) {
- char *doc_title;
+ gchar *doc_title;
- page_cache = ev_page_cache_get (window_title->document);
- g_return_if_fail (page_cache != NULL);
- doc_title = (char *)ev_page_cache_get_title (page_cache);
+ doc_title = g_strdup (ev_document_get_title (window_title->document));
/* Make sure we get a valid title back */
if (doc_title != NULL) {
@@ -139,6 +136,8 @@ ev_window_title_update (EvWindowTitle *window_title)
g_utf8_validate (doc_title, -1, NULL)) {
title = g_strdup (doc_title);
}
+
+ g_free (doc_title);
}
}