gail: drop two clist helpers nothing calls
This commit is contained in:
parent
6e6bfd0a5e
commit
fd6f1f3cf1
1 changed files with 0 additions and 37 deletions
|
|
@ -51,28 +51,6 @@
|
|||
#define COLUMN_LEFT_XPIXEL(clist, colnum) ((clist)->column[(colnum)].area.x + \
|
||||
(clist)->hoffset)
|
||||
|
||||
/* returns the column index from a x pixel location in the
|
||||
* context of the clist's hoffset */
|
||||
static inline gint
|
||||
COLUMN_FROM_XPIXEL (GtkCList * clist,
|
||||
gint x)
|
||||
{
|
||||
gint i, cx;
|
||||
|
||||
for (i = 0; i < clist->columns; i++)
|
||||
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;
|
||||
}
|
||||
|
||||
/* no match */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* returns the top pixel of the given row in the context of
|
||||
* the list height */
|
||||
#define ROW_TOP(clist, row) (((clist)->row_height + CELL_SPACING) * (row))
|
||||
|
|
@ -85,21 +63,6 @@ COLUMN_FROM_XPIXEL (GtkCList * clist,
|
|||
#define LIST_HEIGHT(clist) (((clist)->row_height * ((clist)->rows)) + \
|
||||
(CELL_SPACING * ((clist)->rows + 1)))
|
||||
|
||||
static inline gint
|
||||
LIST_WIDTH (GtkCList * clist)
|
||||
{
|
||||
gint last_column;
|
||||
|
||||
for (last_column = clist->columns - 1;
|
||||
last_column >= 0 && !clist->column[last_column].visible; last_column--);
|
||||
|
||||
if (last_column >= 0)
|
||||
return (clist->column[last_column].area.x +
|
||||
clist->column[last_column].area.width +
|
||||
COLUMN_INSET + CELL_SPACING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* returns the GList item for the nth row */
|
||||
#define ROW_ELEMENT(clist, row) (((row) == (clist)->rows - 1) ? \
|
||||
(clist)->row_list_end : \
|
||||
|
|
|
|||
Loading…
Reference in a new issue