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:
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -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>
|
Thu Oct 22 02:29:53 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkfilesel.h: GtkType and macro fixups
|
* gtk/gtkfilesel.h: GtkType and macro fixups
|
||||||
|
@ -71,13 +71,14 @@ COLUMN_FROM_XPIXEL (GtkCList * clist,
|
|||||||
gint i, cx;
|
gint i, cx;
|
||||||
|
|
||||||
for (i = 0; i < clist->columns; i++)
|
for (i = 0; i < clist->columns; i++)
|
||||||
{
|
if (clist->column[i].visible)
|
||||||
cx = clist->column[i].area.x + clist->hoffset;
|
{
|
||||||
|
cx = clist->column[i].area.x + clist->hoffset;
|
||||||
|
|
||||||
if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) &&
|
if (x >= (cx - (COLUMN_INSET + CELL_SPACING)) &&
|
||||||
x <= (cx + clist->column[i].area.width + COLUMN_INSET))
|
x <= (cx + clist->column[i].area.width + COLUMN_INSET))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* no match */
|
/* no match */
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user