From 2703c2d6582ca9f075ba69bfc192b33616ff8555 Mon Sep 17 00:00:00 2001 From: Christian Bay <christian.bay@studium.fau.de> Date: Sun, 8 Oct 2017 17:45:30 +0200 Subject: [PATCH] Fix library imports in synctex script --- share/synctex-katarakt-vim.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/synctex-katarakt-vim.py b/share/synctex-katarakt-vim.py index 7b09f95..41d4859 100755 --- a/share/synctex-katarakt-vim.py +++ b/share/synctex-katarakt-vim.py @@ -63,7 +63,7 @@ Hint: VIM configuration: -import gobject +from gi.repository.GObject import MainLoop, threads_init import sys import dbus import dbus.service @@ -78,7 +78,7 @@ from dbus.mainloop.glib import DBusGMainLoop # tell dbus that we use the gobject main loop DBusGMainLoop(set_as_default=True) -loop = gobject.MainLoop() +loop = MainLoop() ######################################### @@ -202,6 +202,6 @@ thread.start() # enable threads again, otherwise the quit_if_pdf_exits-thread will not be # executed -gobject.threads_init() +threads_init() loop.run() -- GitLab