[balsa] Avoid geometry creep when maximized.
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Avoid geometry creep when maximized.
- Date: Wed, 21 Dec 2016 01:13:53 +0000 (UTC)
commit 8147242fe6b180624e7791ffd610c23f3fb6bf02
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Dec 20 19:54:15 2016 -0500
Avoid geometry creep when maximized.
* src/main.c (real_main): when initially maximized,
delay 500 msec before setting paned positions and connecting to
signals.
ChangeLog | 8 ++++++++
src/main.c | 12 +++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8bbed16..0fbb3c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-12-20 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Avoid geometry creep when maximized.
+
+ * src/main.c (real_main): when initially maximized,
+ delay 500 msec before setting paned positions and connecting to
+ signals.
+
2016-12-14 Peter Bloomfield <pbloomfield bellsouth net>
Build with gpgme version >= 1.8
diff --git a/src/main.c b/src/main.c
index 747394c..35282aa 100644
--- a/src/main.c
+++ b/src/main.c
@@ -609,7 +609,17 @@ real_main(int argc, char *argv[])
balsa_check_open_compose_window();
g_idle_add((GSourceFunc) scan_mailboxes_idle_cb, NULL);
- g_idle_add((GSourceFunc) balsa_window_fix_paned, balsa_app.main_window);
+ if (balsa_app.mw_maximized) {
+ /*
+ * When maximized at startup, the window changes from maximized
+ * to not maximized a couple of times, so we wait until it has
+ * stabilized (100 msec is not enough!).
+ */
+ g_timeout_add(500, (GSourceFunc) balsa_window_fix_paned, balsa_app.main_window);
+ } else {
+ /* No need to wait. */
+ g_idle_add((GSourceFunc) balsa_window_fix_paned, balsa_app.main_window);
+ }
g_timeout_add_seconds(1801, (GSourceFunc) periodic_expunge_cb, NULL);
if (cmd_check_mail_on_startup || balsa_app.check_mail_upon_startup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]