Mercurial > geeqie
changeset 774:e095a66b428f
layout_real_renamed(), layout_real_removed(), layout_real_moved():
simplify code.
author | zas_ |
---|---|
date | Tue, 03 Jun 2008 07:32:13 +0000 |
parents | 4acde7a0bb01 |
children | 85253619d522 |
files | src/layout.c |
diffstat | 1 files changed, 7 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout.c Sat May 31 19:46:26 2008 +0000 +++ b/src/layout.c Tue Jun 03 07:32:13 2008 +0000 @@ -2008,35 +2008,27 @@ static void layout_real_renamed(LayoutWindow *lw, FileData *fd) { - gint update = FALSE; - if (lw->image) layout_image_maint_renamed(lw, fd); - if (lw->vf) update |= vf_maint_renamed(lw->vf, fd); - - if (update) layout_real_time_update(lw); + if (lw->vf && vf_maint_renamed(lw->vf, fd)) + layout_real_time_update(lw); + } static void layout_real_removed(LayoutWindow *lw, FileData *fd, GList *ignore_list) { - gint update = FALSE; - if (lw->image) layout_image_maint_removed(lw, fd); - if (lw->vf) update |= vf_maint_removed(lw->vf, fd, ignore_list); - - if (update) layout_real_time_update(lw); + if (lw->vf && vf_maint_removed(lw->vf, fd, ignore_list)) + layout_real_time_update(lw); } static void layout_real_moved(LayoutWindow *lw, FileData *fd, GList *ignore_list) { - gint update = FALSE; - if (lw->image) layout_image_maint_moved(lw, fd); - if (lw->vf) update |= vf_maint_moved(lw->vf, fd, ignore_list); - - if (update) layout_real_time_update(lw); + if (lw->vf && vf_maint_moved(lw->vf, fd, ignore_list)) + layout_real_time_update(lw); } void layout_maint_renamed(FileData *fd)