mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-15 05:26:00 +01:00
Auto-refresh window
The window refreshes itself now when the document changes.
This commit is contained in:
parent
7b1bc17b1e
commit
b460faf198
2 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@ MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
GTK_INC = $(shell pkg-config --cflags gtk+-2.0 poppler-glib)
|
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}
|
INCS = -I. -I/usr/include ${GTK_INC}
|
||||||
LIBS = -L/usr/lib -lc ${GTK_LIB} -lpthread
|
LIBS = -L/usr/lib -lc ${GTK_LIB} -lpthread
|
||||||
|
|
|
@ -1117,7 +1117,6 @@ watch_file(void* parameter)
|
||||||
|
|
||||||
Zathura.PDF.scale = scale;
|
Zathura.PDF.scale = scale;
|
||||||
draw(page);
|
draw(page);
|
||||||
gtk_widget_queue_draw(Zathura.UI.drawing_area);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2854,6 +2853,9 @@ int main(int argc, char* argv[])
|
||||||
arg.n = ADJUST_OPEN;
|
arg.n = ADJUST_OPEN;
|
||||||
sc_adjust_window(&arg);
|
sc_adjust_window(&arg);
|
||||||
|
|
||||||
|
if(!g_thread_supported())
|
||||||
|
g_thread_init(NULL);
|
||||||
|
gdk_threads_init();
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue