[balsa/gtk3] Possibly fix critical warnings from GtkNotebook
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Possibly fix critical warnings from GtkNotebook
- Date: Wed, 31 Aug 2011 00:38:57 +0000 (UTC)
commit 2540b090963e34ebc38e541343591198dd362760
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Aug 30 20:37:37 2011 -0400
Possibly fix critical warnings from GtkNotebook
* src/main-window.c: call gtk_container_resize_children after
adding the notebook page for a newly opened mailbox; should not
be necessary, but seems to fix
<URL:http://mail.gnome.org/archives/balsa-list/2011-August/msg00017.html>.
ChangeLog | 7 +++++++
src/main-window.c | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 191a4bc..85e6579 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-08-30 Peter Bloomfield
+ * src/main-window.c: call gtk_container_resize_children after
+ adding the notebook page for a newly opened mailbox; should not
+ be necessary, but seems to fix
+ <URL:http://mail.gnome.org/archives/balsa-list/2011-August/msg00017.html>.
+
+2011-08-30 Peter Bloomfield
+
* configure.in: webkit can be used with threads disabled if glib
version is 2.24 or later.
diff --git a/src/main-window.c b/src/main-window.c
index 6a38cf8..43ae93b 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2413,6 +2413,9 @@ bw_real_open_mbnode(BalsaWindow *window, BalsaMailboxNode * mbnode,
scroll, label);
gtk_notebook_set_tab_reorderable(GTK_NOTEBOOK(window->notebook),
scroll, TRUE);
+ /* This seems to be necessary to avoid critical messages when the
+ * notebook is first drawn: */
+ gtk_container_resize_children(GTK_CONTAINER(window->notebook));
if (set_current)
/* change the page to the newly selected notebook item */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]