[gtk+] treeview: insert the column button css node in the right place
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: insert the column button css node in the right place
- Date: Tue, 25 Apr 2017 18:35:53 +0000 (UTC)
commit 9644bea2a5448237074068ba4d666019a19f1c6f
Author: Timm Bäder <mail baedert org>
Date: Mon Apr 24 21:47:24 2017 +0200
treeview: insert the column button css node in the right place
Insert the css node before setting a parent widget on the column button,
so the gtk_widget_set_parent won't attempt to add the css node as child
of the parent widget css node.
gtk/gtktreeview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 72c687e..118e6a5 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11722,10 +11722,10 @@ gtk_tree_view_insert_column (GtkTreeView *tree_view,
column, position);
tree_view->priv->n_columns++;
- _gtk_tree_view_column_set_tree_view (column, tree_view);
-
gtk_tree_view_update_button_position (tree_view, column);
+ _gtk_tree_view_column_set_tree_view (column, tree_view);
+
if (gtk_widget_get_realized (GTK_WIDGET (tree_view)))
{
GList *list;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]