Auto-refresh window

The window refreshes itself now when the document changes.
This commit is contained in:
Moritz Lipp 2010-03-08 20:52:39 +01:00
parent 7b1bc17b1e
commit b460faf198
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ MANPREFIX = ${PREFIX}/share/man
# libs
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 poppler-glib)
GTK_LIB = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 poppler-glib)
INCS = -I. -I/usr/include ${GTK_INC}
LIBS = -L/usr/lib -lc ${GTK_LIB} -lpthread

View File

@ -1117,7 +1117,6 @@ watch_file(void* parameter)
Zathura.PDF.scale = scale;
draw(page);
gtk_widget_queue_draw(Zathura.UI.drawing_area);
break;
}
@ -2854,6 +2853,9 @@ int main(int argc, char* argv[])
arg.n = ADJUST_OPEN;
sc_adjust_window(&arg);
if(!g_thread_supported())
g_thread_init(NULL);
gdk_threads_init();
gtk_main();
return 0;