[gtk+] treeview: default to width_changed = TRUE
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: default to width_changed = TRUE
- Date: Thu, 20 Jul 2017 01:44:38 +0000 (UTC)
commit 2ac8ebe9f78fd4e1e057337c2f9d491f5aab0c74
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]