changeset 666:732f72201fc7

Simplify thumb_std_maint_moved(), since g_list_append knows how to append to a NULL list. Patch by Uwe Ohse.
author zas_
date Wed, 14 May 2008 17:00:25 +0000
parents 97dd95e210c8
children 09172574c3f3
files src/thumb_standard.c
diffstat 1 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }