diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c index 82cddf0686ac74797501c636317a3f7725e08fdf..e79369e157e44dd4f293825d7173f04cb6d2d8f2 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); -}