Start using gobject introspection

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
oops

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Merge branch 'master' into gobject

Conflicts:
	src/paperwork/util.py
Merge branch 'master' into gobject

Conflicts:
	src/paperwork/frontend/mainwindow.py
Gobject introspection migration: Keep fixing things

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
gobject introspection: keep fixing things

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Gobject introspection: keep fixing things

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Gobject introspection: temporarly disabling things
Main window: Disable boxes for now. They must be remade using Cairo

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
test
Main window Glade file: Switch from GtkVBox/GtkHBox to GtkBox

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
mainwindow.glade: fix indentation

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
mainwindow.glade: Fix layout

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Gobject introspection: Fix settings window

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: Fix layout when exporting file

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Main window: Fix export preview

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Gobject introspection: Fixing doc import

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Workers: Workaround:
Poppler, when using pygi, is much more unstable when used in a multithreaded environment. It segfaults quite easily.
The temporary workaround is to allow only one worker at a time to run, using a global lock.
Since it doesn't have any visible effect, it seems a better solution in the end would be to have only one thread running, and make it run the workers one at a time

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
PyGi: fix popup menus (right clicks)

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Page scanning: Make sure to write .txt and .box files with UTF-8

Signed-off-by: Jerome Flesch <jflesch@gmail.com>