diff options
author | Lars Hamann <lars@gtk.org> | 1998-10-22 14:54:28 +0000 |
---|---|---|
committer | Lars Hamann <lars@src.gnome.org> | 1998-10-22 14:54:28 +0000 |
commit | 87b6664073939e34dbc656f56342bd27ae1e1f91 (patch) | |
tree | 55b2c052c61cc687daea60cbe1f21504f7c840bc /gtk | |
parent | 3785528ef880d59654650f7d133230366b3c5d20 (diff) | |
download | gtk+-87b6664073939e34dbc656f56342bd27ae1e1f91.tar.gz |
samll fix for invisible columns
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkclist.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 6e048f4ad6..25a85e6c57 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -71,13 +71,14 @@ COLUMN_FROM_XPIXEL (GtkCList * clist, gint i, cx; for (i = 0; i < clist->columns; i++) - { - cx = clist->column[i].area.x + clist->hoffset; + if (clist->column[i].visible) + { + cx = clist->column[i].area.x + clist->hoffset; - if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) && - x <= (cx + clist->column[i].area.width + COLUMN_INSET)) - return i; - } + if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) && + x <= (cx + clist->column[i].area.width + COLUMN_INSET)) + return i; + } /* no match */ return -1; |