GList Anti-patterns

g_list_length(children);
for (int i = 0; i < (int)num; i++) {
  GList * child = g_list_nth(children, num - i - 1);

FAIL

if (g_list_length(nb_pages) != 0) {

FAIL

for( i=0; i < g_list_length( GTK_CLIST(clist)->selection; i++ ){
  gint row = (gint)g_list_nth_data( GTK_CLIST(clist)->selection, i);

TURBOFAIL

16:11 Thursday, 16 Jul 2009 [#] [computers] ( comments)

Tasks 0.16

Some stability fixes, translation updates, and small new features in Tasks 0.16.

As usual, download from the Pimlico Project.

08:27 Monday, 13 Jul 2009 [#] [computers] ( comments)