It's amazing what reversing the order in an if statement will do. Doing so

2000-11-22    <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
	reversing the order in an if statement will do.  Doing so managed
	to make the treemodelsort half work.  Other half will follow after
	I get the insert function fully fixed.
This commit is contained in:
2 2000-11-22 07:45:28 +00:00 committed by Jonathan Blandford
parent a2771e40bc
commit c76c5f4857
8 changed files with 51 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -1,3 +1,10 @@
2000-11-22 <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
reversing the order in an if statement will do. Doing so managed
to make the treemodelsort half work. Other half will follow after
I get the insert function fully fixed.
2000-11-21 Elliot Lee <sopwith@redhat.com>
* gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
more than 2 bits. Besides, I need to implement an evil hack. :)

View File

@ -2318,8 +2318,8 @@ gtk_tree_view_calc_size (GtkTreeView *tree_view,
column->size = MAX (column->size, width);
}
_gtk_rbtree_node_set_height (tree, temp, max_height);
if (gtk_tree_model_iter_children (tree_view->priv->model, &child, iter) &&
temp->children != NULL)
if (temp->children != NULL &&
gtk_tree_model_iter_children (tree_view->priv->model, &child, iter))
gtk_tree_view_calc_size (tree_view, temp->children, &child, depth + 1);
temp = _gtk_rbtree_next (tree, temp);
}