setTitle is now a Screen method
[enigma2.git] / lib / python / Screens / PluginBrowser.py
index 41b3f32eda0c2c2703885050385fe93a631a494a..16f3aadd32774abbc8a0d49c0dd786453f83a606 100644 (file)
@@ -68,7 +68,7 @@ class PluginDownloadBrowser(Screen):
                self.container.appClosed.get().append(self.runFinished)
                self.container.dataAvail.get().append(self.dataAvail)
                self.onLayoutFinish.append(self.startRun)
-               self.onShown.append(self.setTitle)
+               self.onShown.append(self.setWindowTitle)
                
                self.list = []
                self["list"] = PluginList(self.list)
@@ -108,11 +108,11 @@ class PluginDownloadBrowser(Screen):
                        elif self.type == self.REMOVE:
                                self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
 
-       def setTitle(self):
+       def setWindowTitle(self):
                if self.type == self.DOWNLOAD:
-                       self.session.currentDialog.instance.setTitle(_("Downloadable new plugins"))
+                       self.setTitle(_("Downloadable new plugins"))
                elif self.type == self.REMOVE:
-                       self.session.currentDialog.instance.setTitle(_("Remove plugins"))
+                       self.setTitle(_("Remove plugins"))
 
        def startRun(self):
                self["list"].instance.hide()