[Xfce4-commits] [xfce/thunar] 32/46: Fix Allocation size warning

noreply at xfce.org noreply at xfce.org
Tue Aug 15 02:35:40 CEST 2017


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

a   n   d   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/thunar.

commit fab8d1545cc79f44d34353d43206d43368303388
Author: Andre Miranda <andre42m at gmail.com>
Date:   Sun May 28 20:35:02 2017 -0300

    Fix Allocation size warning
---
 thunar/thunar-location-buttons.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/thunar/thunar-location-buttons.c b/thunar/thunar-location-buttons.c
index a12252f..907470d 100644
--- a/thunar/thunar-location-buttons.c
+++ b/thunar/thunar-location-buttons.c
@@ -867,6 +867,9 @@ thunar_location_buttons_size_allocate (GtkWidget     *widget,
 
   if (need_sliders || buttons->fake_root_button != NULL)
     {
+      /* to avoid warnings in gtk >= 3.20 */
+      gtk_widget_get_preferred_width (buttons->left_slider, &width, NULL);
+
       child_allocation.width = buttons->slider_width;
       child_allocation.x = left_slider_offset + allocation->x;
       gtk_widget_size_allocate (buttons->left_slider, &child_allocation);

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


More information about the Xfce4-commits mailing list