Mercurial > geeqie
comparison src/thumb_standard.c @ 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 | 135570a8bd96 |
children | 8268cbe682f1 |
comparison
equal
deleted
inserted
replaced
665:97dd95e210c8 | 666:732f72201fc7 |
---|---|
1066 if (!thumb_std_maint_move_list) | 1066 if (!thumb_std_maint_move_list) |
1067 { | 1067 { |
1068 g_idle_add_full(G_PRIORITY_LOW, thumb_std_maint_move_idle, NULL, NULL); | 1068 g_idle_add_full(G_PRIORITY_LOW, thumb_std_maint_move_idle, NULL, NULL); |
1069 } | 1069 } |
1070 | 1070 |
1071 if (thumb_std_maint_move_tail) | 1071 thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); |
1072 { | 1072 if (!thumb_std_maint_move_list) |
1073 thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); | 1073 thumb_std_maint_move_list = thumb_std_maint_move_tail; |
1074 thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; | 1074 thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; |
1075 } | 1075 } |
1076 else | |
1077 { | |
1078 thumb_std_maint_move_list = g_list_append(thumb_std_maint_move_list, tm); | |
1079 thumb_std_maint_move_tail = thumb_std_maint_move_list; | |
1080 } | |
1081 } |