[Xfce4-commits] [xfce/exo] 02/02: Move ExoWrapTable allocation up to correctly determine column count and resolve CID 127777: Uninitialized scalar variable

noreply at xfce.org noreply at xfce.org
Thu Jun 7 04:32:46 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/exo.

commit ebed181dd55c4d029f63593d0c22f0a7319c0c56
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Jun 6 22:32:38 2018 -0400

    Move ExoWrapTable allocation up to correctly determine column count and resolve CID 127777: Uninitialized scalar variable
---
 exo/exo-wrap-table.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/exo/exo-wrap-table.c b/exo/exo-wrap-table.c
index e79a3fd..88c2f39 100644
--- a/exo/exo-wrap-table.c
+++ b/exo/exo-wrap-table.c
@@ -407,6 +407,8 @@ exo_wrap_table_layout (ExoWrapTable *table)
   if (G_UNLIKELY (num_children <= 0))
     return;
 
+  gtk_widget_get_allocation (GTK_WIDGET (table), &allocation);
+
   /* determine the number of columns */
   num_cols = exo_wrap_table_get_num_fitting (allocation.width
                                              - gtk_container_get_border_width (GTK_CONTAINER (table)) * 2,
@@ -421,7 +423,6 @@ exo_wrap_table_layout (ExoWrapTable *table)
     }
 
   /* determine the horizontal bounds */
-  gtk_widget_get_allocation (GTK_WIDGET (table), &allocation);
   x0 = allocation.x + gtk_container_get_border_width (GTK_CONTAINER (table));
   x1 = x0 + allocation.width - gtk_container_get_border_width (GTK_CONTAINER (table));
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list