aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-12-28 13:40:35 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-12-28 13:40:35 +0000
commit433d8195a74bfe04ff2dc8c30a54fb08789c7f68 (patch)
tree45be05b2d304798fe9c766566a16bbeb69288364 /src/main.c
parentf4373a1f831355e0a7eb7b33b373c14d5fc05926 (diff)
parenta70919c9caf23755e474c1364a8f838d75bc704e (diff)
downloadimv-433d8195a74bfe04ff2dc8c30a54fb08789c7f68.tar.gz
Merge pull request #68 from czarkoff/reload
Use stat(2) to monitor file changes
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index 5bdde7e..6f48fb6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,7 +28,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "navigator.h"
#include "viewport.h"
#include "util.h"
-#include "reload.h"
struct {
int fullscreen;
@@ -285,9 +284,6 @@ int main(int argc, char** argv)
struct imv_viewport view;
imv_init_viewport(&view, window);
- struct imv_reload reload;
- imv_init_reload(&reload);
-
/* put us in fullscren mode to begin with if requested */
if(g_options.fullscreen) {
imv_viewport_toggle_fullscreen(&view);
@@ -422,7 +418,7 @@ int main(int argc, char** argv)
}
/* if the user has changed image, start loading the new one */
- if(imv_navigator_poll_changed(&nav) || imv_reload_changed(&reload)) {
+ if(imv_navigator_poll_changed(&nav)) {
const char *current_path = imv_navigator_selection(&nav);
if(!current_path) {
fprintf(stderr, "No input files left. Exiting.\n");
@@ -435,7 +431,6 @@ int main(int argc, char** argv)
imv_viewport_set_title(&view, title);
imv_loader_load_path(&ldr, current_path);
- imv_reload_watch(&reload, current_path);
view.playing = 1;
}
@@ -574,7 +569,6 @@ int main(int argc, char** argv)
imv_destroy_texture(&tex);
imv_navigator_destroy(&nav);
imv_destroy_viewport(&view);
- imv_destroy_reload(&reload);
if(font) {
TTF_CloseFont(font);