Skip to content

Commit

Permalink
Simplify fix for "unexpected overshoot fade on icon view"
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Miranda committed Apr 1, 2018
1 parent b16fa8e commit 5779550
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions thunar/thunar-abstract-icon-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);



Expand Down Expand Up @@ -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);
}


Expand Down Expand Up @@ -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);
}

0 comments on commit 5779550

Please sign in to comment.