[pitivi: 72/94] Fix the ui.timeline.InfoStub._errorDialogBox* handlers by implementing the FileListErrorDialog.destr



commit b95fc3031d800e9acd967341923121298af25a31
Author: Alex BÄluÈ <alexandru balut gmail com>
Date:   Mon Sep 5 05:19:59 2011 +0200

    Fix the ui.timeline.InfoStub._errorDialogBox* handlers by implementing the FileListErrorDialog.destroy method they are using

 pitivi/ui/filelisterrordialog.py |    3 +++
 pitivi/ui/sourcelist.py          |    7 +++----
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/filelisterrordialog.py b/pitivi/ui/filelisterrordialog.py
index 85ebc59..14d90f4 100644
--- a/pitivi/ui/filelisterrordialog.py
+++ b/pitivi/ui/filelisterrordialog.py
@@ -107,6 +107,9 @@ class FileListErrorDialog(Signallable, Loggable):
         """ returns True if this dialog is currently shown """
         return self.window.get_property("visible")
 
+    def destroy(self):
+        self.window.destroy()
+
     ## Callbacks from glade
 
     def _closeCb(self, unused_dialog):
diff --git a/pitivi/ui/sourcelist.py b/pitivi/ui/sourcelist.py
index 966c4e3..9d07e30 100644
--- a/pitivi/ui/sourcelist.py
+++ b/pitivi/ui/sourcelist.py
@@ -110,8 +110,7 @@ class SourceList(gtk.VBox, Loggable):
 
     __gsignals__ = {
         'play': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
-                (gobject.TYPE_PYOBJECT,))
-        }
+                (gobject.TYPE_PYOBJECT,))}
 
     def __init__(self, instance, uiman):
         gtk.VBox.__init__(self)
@@ -660,11 +659,11 @@ class SourceList(gtk.VBox, Loggable):
     ## Error Dialog Box callbacks
 
     def _errorDialogBoxCloseCb(self, unused_dialog):
-        self._error_dialogbox.window.destroy()
+        self._error_dialogbox.destroy()
         self._error_dialogbox = None
 
     def _errorDialogBoxResponseCb(self, unused_dialog, unused_response):
-        self._error_dialogbox.window.destroy()
+        self._error_dialogbox.destroy()
         self._error_dialogbox = None
 
     ## Import Sources Dialog Box callbacks



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