summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-26 19:08:19 +0100
committerBastien Nocera <hadess@hadess.net>2022-01-26 19:08:19 +0100
commit2001dfee022cd37237f5fc3937611ed7b9c58ccb (patch)
tree478ee62d51caa78baa315fcb7b2daad6da3d4e9a
parent60efa89f2b554f107b45e3b9b18906a81c432aea (diff)
downloadtotem-2001dfee022cd37237f5fc3937611ed7b9c58ccb.tar.gz
opensubtitles: Fix dialogue not showing up
plugin_load_interface() was removed in fd461b6571855f31cf48103a65a447c8ee3b110e and not replaced for the opensubtitles plugin. Do that now.
-rw-r--r--src/plugins/opensubtitles/opensubtitles.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index d664f547a..d72ccccac 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -4,6 +4,7 @@ import xmlrpc.client
import threading
import zlib
from os import sep
+import os
import gettext
import gi
@@ -445,10 +446,8 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902
# UI related code
def _build_dialog (self):
- builder = Totem.plugin_load_interface ("opensubtitles",
- "opensubtitles.ui", True,
- self._totem.get_main_window (), # pylint: disable=no-member
- None)
+ ui_file_path = os.path.dirname (os.path.abspath (__file__)) + sep + 'opensubtitles.ui'
+ builder = Gtk.Builder.new_from_file (ui_file_path)
# Obtain all the widgets we need to initialize
combobox = builder.get_object ('language_combobox')