[totem/wip/hadess/fix-opensubtitles-plugin] opensubtitles: Fix dialogue not showing up
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-opensubtitles-plugin] opensubtitles: Fix dialogue not showing up
- Date: Wed, 26 Jan 2022 18:09:36 +0000 (UTC)
commit 2001dfee022cd37237f5fc3937611ed7b9c58ccb
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 26 19:08:19 2022 +0100
opensubtitles: Fix dialogue not showing up
plugin_load_interface() was removed in
fd461b6571855f31cf48103a65a447c8ee3b110e and not replaced for the
opensubtitles plugin. Do that now.
src/plugins/opensubtitles/opensubtitles.py | 7 +++----
1 file 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')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]