[gtk+/wip/baedert/drawing: 180/371] treeview: default to width_changed = TRUE



commit 3a671e3fa78078388e6dda97947dba0e8ffcdbc6
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 b9af41b..21d10d6 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2602,7 +2602,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]