Mercurial > geeqie.yaz
comparison src/layout.c @ 495:c7a2471e5c4e
Introduce macros to display debug messages.
if (debug) printf(...) is now replaced by variadic macros:
DEBUG_1()
And for higher debugging levels:
DEBUG_2()
DEBUG_3()
DEBUG_4()
author | zas_ |
---|---|
date | Wed, 23 Apr 2008 20:47:19 +0000 |
parents | 3809ffa3567b |
children | 1bac19d5a663 |
comparison
equal
deleted
inserted
replaced
494:3bb9a8df6ee9 | 495:c7a2471e5c4e |
---|---|
1030 | 1030 |
1031 void layout_refresh(LayoutWindow *lw) | 1031 void layout_refresh(LayoutWindow *lw) |
1032 { | 1032 { |
1033 if (!layout_valid(&lw)) return; | 1033 if (!layout_valid(&lw)) return; |
1034 | 1034 |
1035 if (debug) printf("layout refresh\n"); | 1035 DEBUG_1("layout refresh\n"); |
1036 | 1036 |
1037 layout_refresh_lists(lw); | 1037 layout_refresh_lists(lw); |
1038 | 1038 |
1039 if (lw->image) layout_image_refresh(lw); | 1039 if (lw->image) layout_image_refresh(lw); |
1040 } | 1040 } |
1051 | 1051 |
1052 new_time = filetime(lw->path); | 1052 new_time = filetime(lw->path); |
1053 | 1053 |
1054 if (new_time > 0 && new_time > lw->last_time) | 1054 if (new_time > 0 && new_time > lw->last_time) |
1055 { | 1055 { |
1056 if (debug) printf("layout path time changed, refreshing...\n"); | 1056 DEBUG_1("layout path time changed, refreshing...\n"); |
1057 layout_refresh_by_time(lw); | 1057 layout_refresh_by_time(lw); |
1058 } | 1058 } |
1059 } | 1059 } |
1060 | 1060 |
1061 return TRUE; | 1061 return TRUE; |