summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-11-02 23:43:04 +0100
committerportix <portix@gmx.net>2010-11-02 23:43:04 +0100
commit058d0f1e6e98a0dcf312a4eaba35fe9feda90ca0 (patch)
treec0c2a40560278cf4275e1d9ac5bf1f41e9c53309
parente5a7ec9eb5a408b80e0855eec756c1cf2de53dd6 (diff)
downloaddwb-058d0f1e6e98a0dcf312a4eaba35fe9feda90ca0.zip
Update Layout after restoring a session
-rw-r--r--src/dwb.c2
-rw-r--r--src/session.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index eeed164b..8de57460 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -448,10 +448,10 @@ dwb_update_status_text(GList *gl) {
value == upper ? g_strdup(" [bot]") :
g_strdup_printf(" [%02d%%]", (gint)(value * 100/upper));
g_string_append(string, position);
+ g_free(position);
dwb_set_status_bar_text(VIEW(gl)->rstatus, string->str, NULL, NULL);
g_string_free(string, true);
- g_free(position);
}/*}}}*/
/*}}}*/
diff --git a/src/session.c b/src/session.c
index dc1df1ce..6a91acb7 100644
--- a/src/session.c
+++ b/src/session.c
@@ -119,6 +119,7 @@ dwb_session_restore(const gchar *name) {
gtk_widget_hide(((View*)l->data)->vbox);
}
}
+ dwb_update_layout();
return true;
}/*}}}*/