# HG changeset patch # User zas_ # Date 1210784425 0 # Node ID 732f72201fc71c022c16b4f38637da738a922542 # Parent 97dd95e210c846dbc06d7c83d396acd95cb5a74f Simplify thumb_std_maint_moved(), since g_list_append knows how to append to a NULL list. Patch by Uwe Ohse. diff -r 97dd95e210c8 -r 732f72201fc7 src/thumb_standard.c --- a/src/thumb_standard.c Wed May 14 16:52:55 2008 +0000 +++ b/src/thumb_standard.c Wed May 14 17:00:25 2008 +0000 @@ -1068,14 +1068,8 @@ g_idle_add_full(G_PRIORITY_LOW, thumb_std_maint_move_idle, NULL, NULL); } - if (thumb_std_maint_move_tail) - { - thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); - thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; - } - else - { - thumb_std_maint_move_list = g_list_append(thumb_std_maint_move_list, tm); - thumb_std_maint_move_tail = thumb_std_maint_move_list; - } + thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); + if (!thumb_std_maint_move_list) + thumb_std_maint_move_list = thumb_std_maint_move_tail; + thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; }