fix logic (fixes #74235, #73593)

Thu Mar 21 00:05:14 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreeview.c (gtk_tree_view_get_background_area),
        (gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
This commit is contained in:
Kristian Rietveld 2002-03-20 23:04:16 +00:00 committed by Kristian Rietveld
parent b93bcb5ecb
commit dc5be9edc5
7 changed files with 34 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -1,3 +1,8 @@
Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_background_area),
(gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c: Patch from Richard Hestilow to fix

View File

@ -9335,8 +9335,8 @@ gtk_tree_view_get_cell_area (GtkTreeView *tree_view,
if (path)
{
/* Get vertical coords */
if (_gtk_tree_view_find_node (tree_view, path, &tree, &node) &&
tree != NULL)
if (!_gtk_tree_view_find_node (tree_view, path, &tree, &node) &&
tree == NULL)
return;
rect->y = CELL_FIRST_PIXEL (tree_view, tree, node, vertical_separator);
@ -9395,8 +9395,8 @@ gtk_tree_view_get_background_area (GtkTreeView *tree_view,
{
/* Get vertical coords */
if (_gtk_tree_view_find_node (tree_view, path, &tree, &node) &&
tree != NULL)
if (!_gtk_tree_view_find_node (tree_view, path, &tree, &node) &&
tree == NULL)
return;
rect->y = BACKGROUND_FIRST_PIXEL (tree_view, tree, node);