[gtk] treeview: Remove a useless check



commit f4cf43359d1261fb26bb4937c240db0ba36fb3c7
Author: Timm Bäder <mail baedert org>
Date:   Sun Apr 28 06:50:57 2019 +0200

    treeview: Remove a useless check

 gtk/gtktreeview.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8c03111ca8..344bd1f1be 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2526,10 +2526,7 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget)
    * which changes the total width of the tree view.  This is of
    * importance for getting the horizontal scroll bar right.
    */
-  if (tree_view->priv->width != width)
-    {
-      tree_view->priv->width = width;
-    }
+  tree_view->priv->width = width;
 }
 
 /* GtkWidget::size_allocate helper */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]