diff options
-rw-r--r-- | src/imv.c | 11 | ||||
-rw-r--r-- | src/imv.h | 2 |
2 files changed, 7 insertions, 6 deletions
@@ -356,12 +356,13 @@ void imv_add_path(struct imv *imv, const char *path) imv_navigator_add(imv->navigator, path, imv->recursive_load); } -bool imv_run(struct imv *imv) +int imv_run(struct imv *imv) { - if(!setup_window(imv)) - return false; + if(imv->quit) + return 0; - imv->quit = false; + if(!setup_window(imv)) + return 1; /* cache current image's dimensions */ int iw = 0; @@ -508,7 +509,7 @@ bool imv_run(struct imv *imv) puts(imv_navigator_at(imv->navigator, i)); } - return false; + return 0; } static bool setup_window(struct imv *imv) @@ -29,7 +29,7 @@ bool imv_parse_args(struct imv *imv, int argc, char **argv); void imv_add_path(struct imv *imv, const char *path); -bool imv_run(struct imv *imv); +int imv_run(struct imv *imv); #endif |