[gtk+/wip/baedert/drawing: 182/183] treeview: default to width_changed = TRUE



commit 954e987d619c9114cdf9fa55ed1bc68cbf66593d
Author: Timm Bäder <mail baedert org>
Date:   Sat May 20 14:18:11 2017 +0200

    treeview: default to width_changed = TRUE
    
    Checking the given GtkAllocation against the current allocation insize
    ::size-allocate doesn't really work anymore. They are only different if
    the content allocation (the one passed) and the widget allocation (the
    current one) are different, so e.g. when the widget has padding >0
    applied.

 gtk/gtktreeview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 35b257f..37868a2 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2648,7 +2648,7 @@ gtk_tree_view_size_allocate (GtkWidget     *widget,
 {
   GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
   GList *tmp_list;
-  gboolean width_changed = FALSE;
+  gboolean width_changed = TRUE;
   gint old_width;
   double page_size;
 


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