mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:33:46 +01:00
Auto-refresh window
The window refreshes itself now when the document changes.
This commit is contained in:
parent
7b1bc17b1e
commit
b460faf198
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user