[evince] shell: remove tmp_title in window_title_update



commit 19ca8fc6b51fa90a151944b3eb4c33d46d8f1020
Author: José Aliste <jaliste src gnome org>
Date:   Fri Jul 25 17:31:41 2014 -0400

    shell: remove tmp_title in window_title_update
    
    it is not needed and makes the code more confusing.

 shell/ev-window-title.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/shell/ev-window-title.c b/shell/ev-window-title.c
index 98ff0c2..ed7838a 100644
--- a/shell/ev-window-title.c
+++ b/shell/ev-window-title.c
@@ -131,14 +131,13 @@ ev_window_title_update (EvWindowTitle *window_title)
        }
 
        if (title && window_title->uri) {
-               char *tmp_title;
                subtitle = get_filename_from_uri (window_title->uri);
 
                ev_window_title_sanitize_title (window_title, &title);
-               tmp_title = g_strdup_printf ("%s — %s", subtitle, title);
 
                title_header = title;
-                title = tmp_title;
+               title = g_strdup_printf ("%s — %s", subtitle, title);
+
        } else if (window_title->uri) {
                title = get_filename_from_uri (window_title->uri);
        } else if (!title) {


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