do expand as well as expand_template in update_title
authorBrendan Taylor <whateley@gmail.com>
Thu, 9 Jul 2009 13:09:16 +0000 (07:09 -0600)
committerBrendan Taylor <whateley@gmail.com>
Thu, 9 Jul 2009 13:09:16 +0000 (07:09 -0600)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index 6ace047..210e94f 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -2054,12 +2054,14 @@ update_title (void) {
     if (b->show_status) {
         if (b->title_format_short) {
             parsed = expand_template(b->title_format_short, FALSE);
+            parsed = expand(parsed, 0, FALSE);
             if (uzbl.gui.main_window)
                 gtk_window_set_title (GTK_WINDOW(uzbl.gui.main_window), parsed);
             g_free(parsed);
         }
         if (b->status_format) {
             parsed = expand_template(b->status_format, TRUE);
+            parsed = expand(parsed, 0, TRUE);
             gtk_label_set_markup(GTK_LABEL(uzbl.gui.mainbar_label), parsed);
             g_free(parsed);
         }
@@ -2075,6 +2077,7 @@ update_title (void) {
     } else {
         if (b->title_format_long) {
             parsed = expand_template(b->title_format_long, FALSE);
+            parsed = expand(parsed, 0, FALSE);
             if (uzbl.gui.main_window)
                 gtk_window_set_title (GTK_WINDOW(uzbl.gui.main_window), parsed);
             g_free(parsed);