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
This commit is contained in:
Lars Hamann 1998-10-22 14:54:28 +00:00 committed by Lars Hamann
parent 3785528ef8
commit 87b6664073
8 changed files with 42 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -1,3 +1,8 @@
Thu Oct 22 16:22:55 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.c (COLUMN_FROM_XPIXEL): samll fix for invisible
columns
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkfilesel.h: GtkType and macro fixups

View File

@ -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;