[Xfce4-commits] [xfce/thunar] 01/01: Simplify fix for "unexpected overshoot fade on icon view"

noreply at xfce.org noreply at xfce.org
Sun Apr 1 22:54:27 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 577955032a59ec7c8222343564040fb39d3c4f81
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sun Apr 1 17:53:47 2018 -0300

    Simplify fix for "unexpected overshoot fade on icon view"
---
 thunar/thunar-abstract-icon-view.c | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c
index 82cddf0..e79369e 100644
--- a/thunar/thunar-abstract-icon-view.c
+++ b/thunar/thunar-abstract-icon-view.c
@@ -92,9 +92,6 @@ 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);
 
 
 
@@ -250,9 +247,8 @@ thunar_abstract_icon_view_init (ThunarAbstractIconView *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);
+  g_signal_connect_swapped (G_OBJECT (abstract_icon_view), "size-allocate",
+                            G_CALLBACK (gtk_widget_queue_resize), view);
 }
 
 
@@ -793,13 +789,3 @@ 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