mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
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:
parent
3785528ef8
commit
87b6664073
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user