mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:13:53 +01:00
36 lines
592 B
C
36 lines
592 B
C
/* See LICENSE file for license and copyright information */
|
|
|
|
#include "zathura.h"
|
|
|
|
/* function implementation */
|
|
bool
|
|
init_zathura()
|
|
{
|
|
if(!(Zathura.UI.session = girara_session_create()))
|
|
return false;
|
|
|
|
if(!girara_session_init(Zathura.UI.session))
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
/* main function */
|
|
int main(int argc, char* argv[])
|
|
{
|
|
g_thread_init(NULL);
|
|
gdk_threads_init();
|
|
gtk_init(&argc, &argv);
|
|
|
|
if(!init_zathura()) {
|
|
printf("error: coult not initialize zathura\n");
|
|
return -1;
|
|
}
|
|
|
|
gdk_threads_enter();
|
|
gtk_main();
|
|
gdk_threads_leave();
|
|
|
|
return 0;
|
|
}
|