if (row < prev_row) {
min = row;
max = prev_row;
- GTK_CMCLIST(sctree)->focus_row = max;
+ GTK_CMCLIST(sctree)->focus_row = min;
} else {
min = prev_row;
max = row;
return FALSE;
tree_row = GTK_CMCTREE_ROW (node);
+ if (!tree_row->children)
+ return FALSE;
hotspot_size = clist->row_height-2;
if (hotspot_size > clist->column[ctree->tree_column].area.width - 2)
list_end->next = work->next;
if (work->next)
- list = work->next->prev = list_end;
+ work->next->prev = list_end;
work->next = (GList *)node;
list = (GList *)node;
list->prev = work;
int i;
clist = GTK_CMCLIST (ctree);
-#if GLIB_CHECK_VERSION(2,10,0)
ctree_row = g_slice_new (GtkCMCTreeRow);
ctree_row->row.cell = g_slice_alloc (sizeof (GtkCMCell) * clist->columns);
-#else
- ctree_row = g_chunk_new (GtkCMCTreeRow, (GMemChunk *)clist->row_mem_chunk);
- ctree_row->row.cell = g_chunk_new (GtkCMCell, (GMemChunk *)clist->cell_mem_chunk);
-#endif
for (i = 0; i < clist->columns; i++)
{
ctree_row->row.cell[i].type = GTK_CMCELL_EMPTY;
dnotify (ddata);
}
-#if GLIB_CHECK_VERSION(2,10,0)
g_slice_free1 (sizeof (GtkCMCell) * clist->columns, ctree_row->row.cell);
g_slice_free (GtkCMCTreeRow, ctree_row);
-#else
- g_mem_chunk_free ((GMemChunk *)clist->cell_mem_chunk, ctree_row->row.cell);
- g_mem_chunk_free ((GMemChunk *)clist->row_mem_chunk, ctree_row);
-#endif
}
static void
int column,
const gchar *tip)
{
-#if !(GTK_CHECK_VERSION(2,12,0))
- GtkTooltips *tips;
- if (!sctree->tooltips)
- sctree->tooltips = gtk_tooltips_new();
- tips = sctree->tooltips;
-#endif
-
CLAWS_SET_TIP(GTK_CMCLIST(sctree)->column[column].button,
tip);
}