[totem] Bug 646231 — Subtitle downloader plugin broken on 2.91.93



commit faa342e0cd52171a34be8d8f68e9b3bfcc902794
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Mar 30 15:49:43 2011 +0100

    Bug 646231 â?? Subtitle downloader plugin broken on 2.91.93
    
    Fix another API break in pygobject/GTK+'s GIR. This allows the Subtitle
    Downloader dialogue to actually open successfully.
    
    Closes: bgo#646231

 src/plugins/opensubtitles/opensubtitles.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 791cc67..a5b5c50 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -364,8 +364,9 @@ class OpenSubtitles(gobject.GObject, Peas.Activatable):
         for lang in LANGUAGES_STR:
             it = languages.append(lang)
             if LANGUAGES[lang[1]] == self.model.lang:
-                parentit = sorted_languages.convert_child_iter_to_iter (it)
-                combobox.set_active_iter(parentit)
+                (success, parentit) = sorted_languages.convert_child_iter_to_iter (it)
+                if success:
+                    combobox.set_active_iter (parentit)
 
         # Set up the results treeview 
         renderer = Gtk.CellRendererText()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]