[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-593-gc6b9d47

ticho at claws-mail.org ticho at claws-mail.org
Sun Jan 13 17:20:17 CET 2019


The branch, gtk3 has been updated
       via  c6b9d4745f7006841193b7cec6a131047ce81335 (commit)
      from  4b9adc862f3a14af2815c62aa84b816efdab8c61 (commit)

Summary of changes:
 src/gtk/gtkcmclist.c |    4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit c6b9d4745f7006841193b7cec6a131047ce81335
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Jan 13 17:17:32 2019 +0100

    In GtkCMCList, do not try to allocate title button sizes if the widget is not ready
    
    This fixes fixes several GTK runtime warnings displayed
    on startup and when switching between layouts. Plus,
    saves some CPU cycles, obviously.

diff --git a/src/gtk/gtkcmclist.c b/src/gtk/gtkcmclist.c
index de34e89..e825058 100644
--- a/src/gtk/gtkcmclist.c
+++ b/src/gtk/gtkcmclist.c
@@ -2062,6 +2062,10 @@ size_allocate_title_buttons (GtkCMCList *clist)
   if (!gtk_widget_get_realized (GTK_WIDGET(clist)))
     return;
 
+	/* we're too early, the widget is not yet ready */
+	if (clist->column_title_area.height <= 1)
+		return;
+
   button_allocation.x = clist->hoffset;
   button_allocation.y = 0;
   button_allocation.width = 0;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list