diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-11-24 10:16:23 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-11-24 10:16:23 +0100 |
commit | f2ae04f3bbf8196d8bed3863ba5fff27127ab049 (patch) | |
tree | b237524986001e5aedd66633357267c34ad91684 | |
parent | 9cbe5c593b63434c4b6c614f47fead7134e7f84f (diff) | |
download | totem-f2ae04f3bbf8196d8bed3863ba5fff27127ab049.tar.gz |
opensubtitles: Fix blank dialogue when reopened
totem_plugin_load_interface() used to call
totem_interface_load_with_full_path() which itself called
gtk_builder_connect_signals().
And as we didn't do that anymore when we started loading the file
ourselves, gtk_widget_hide_on_delete() wasn't called so the dialogue
was destroyed which we didn't expect.
With help from Krifa75 <yahiaoui.fakhri@gmail.com>
Fixes: 2001dfe ("opensubtitles: Fix dialogue not showing up")
Closes: #549
-rw-r--r-- | src/plugins/opensubtitles/opensubtitles.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py index 3163c377b..589ef10fb 100644 --- a/src/plugins/opensubtitles/opensubtitles.py +++ b/src/plugins/opensubtitles/opensubtitles.py @@ -455,6 +455,7 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902 def _build_dialog (self): ui_file_path = os.path.dirname (os.path.abspath (__file__)) + sep + 'opensubtitles.ui' builder = Gtk.Builder.new_from_file (ui_file_path) + builder.connect_signals(None) # Obtain all the widgets we need to initialize combobox = builder.get_object ('language_combobox') |