[Xfce4-commits] [xfce/thunar] 01/01: Avoid unexpected overshoot fade on icon view

noreply at xfce.org noreply at xfce.org
Wed Mar 28 01:39:47 CEST 2018


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 375bc4075873054820b75f296578a5e312087da8
Author: Andre Miranda <andreldm at xfce.org>
Date:   Tue Mar 27 20:31:53 2018 -0300

    Avoid unexpected overshoot fade on icon view
---
 thunar/thunar-abstract-icon-view.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c
index 2267d4a..82cddf0 100644
--- a/thunar/thunar-abstract-icon-view.c
+++ b/thunar/thunar-abstract-icon-view.c
@@ -92,6 +92,9 @@ static void         thunar_abstract_icon_view_item_activated        (ExoIconView
 static void         thunar_abstract_icon_view_sort_column_changed   (GtkTreeSortable              *sortable,
                                                                      ThunarAbstractIconView       *abstract_icon_view);
 static void         thunar_abstract_icon_view_zoom_level_changed    (ThunarAbstractIconView       *abstract_icon_view);
+static void         thunar_abstract_icon_view_size_allocate         (ThunarAbstractIconView       *abstract_icon_view,
+                                                                     GtkAllocation                *allocation,
+                                                                     GtkWidget                    *view);
 
 
 
@@ -245,6 +248,11 @@ thunar_abstract_icon_view_init (ThunarAbstractIconView *abstract_icon_view)
   g_signal_connect (G_OBJECT (THUNAR_STANDARD_VIEW (abstract_icon_view)->model), "sort-column-changed",
                     G_CALLBACK (thunar_abstract_icon_view_sort_column_changed), abstract_icon_view);
   thunar_abstract_icon_view_sort_column_changed (GTK_TREE_SORTABLE (THUNAR_STANDARD_VIEW (abstract_icon_view)->model), abstract_icon_view);
+
+  /* update the icon view on size-allocate events */
+  g_signal_connect_after (G_OBJECT (abstract_icon_view), "size-allocate",
+                          G_CALLBACK (thunar_abstract_icon_view_size_allocate),
+                          view);
 }
 
 
@@ -785,3 +793,13 @@ thunar_abstract_icon_view_zoom_level_changed (ThunarAbstractIconView *abstract_i
                                       THUNAR_STANDARD_VIEW (abstract_icon_view)->icon_renderer,
                                       NULL, NULL, NULL);
 }
+
+
+
+static void
+thunar_abstract_icon_view_size_allocate (ThunarAbstractIconView *abstract_icon_view,
+                                         GtkAllocation          *allocation,
+                                         GtkWidget              *view)
+{
+  gtk_widget_queue_resize (view);
+}

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


More information about the Xfce4-commits mailing list