[balsa] Save the correct window geometry
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Save the correct window geometry
- Date: Sun, 20 Nov 2016 15:33:57 +0000 (UTC)
commit 5782ee9daa23347afffccf94537c75967cbe1b86
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Nov 20 10:33:31 2016 -0500
Save the correct window geometry
* src/main-window.c (bw_size_allocate_cb): save the window
geometry from gtk_window_get_size instead of the GtkAllocation.
ChangeLog | 7 +++++++
src/main-window.c | 5 +++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 87ba207..73e92b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-11-20 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Save the correct window geometry
+
+ * src/main-window.c (bw_size_allocate_cb): save the window
+ geometry from gtk_window_get_size instead of the GtkAllocation.
+
2016-11-19 Peter Bloomfield <pbloomfield bellsouth net>
* libbalsa/misc.c: document libbalsa_font_string_to_css.
diff --git a/src/main-window.c b/src/main-window.c
index 1b1cb36..02002bf 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -4335,8 +4335,9 @@ static void
bw_size_allocate_cb(GtkWidget * window, GtkAllocation * alloc)
{
if (!balsa_app.mw_maximized) {
- balsa_app.mw_height = alloc->height;
- balsa_app.mw_width = alloc->width;
+ gtk_window_get_size(GTK_WINDOW(window),
+ & balsa_app.mw_width,
+ & balsa_app.mw_height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]