Enigma2-Plugins: implement needsRestart=False for plugins that don't need a enigma2...
[enigma2.git] / lib / python / Plugins / Extensions / CutListEditor / plugin.py
old mode 100644 (file)
new mode 100755 (executable)
index abd606d..141c04a
@@ -10,7 +10,7 @@ from Components.VideoWindow import VideoWindow
 from Components.Label import Label
 from Screens.InfoBarGenerics import InfoBarSeek, InfoBarCueSheetSupport
 from Components.GUIComponent import GUIComponent
-from enigma import eListboxPythonMultiContent, eListbox, gFont, iPlayableService, RT_HALIGN_RIGHT
+from enigma import eListboxPythonMultiContent, eListbox, getDesktop, gFont, iPlayableService, RT_HALIGN_RIGHT
 from Screens.FixedMenu import FixedMenu
 from Screens.HelpMenu import HelpableScreen
 from ServiceReference import ServiceReference
@@ -167,7 +167,8 @@ class CutListEditor(Screen, InfoBarBase, InfoBarSeek, InfoBarCueSheetSupport, He
                self.onPlayStateChanged.append(self.updateStateLabel)
                self.updateStateLabel(self.seekstate)
 
-               self["Video"] = VideoWindow(decoder = 0)
+               desktopSize = getDesktop(0).size()
+               self["Video"] = VideoWindow(decoder = 0, fb_width=desktopSize.width(), fb_height=desktopSize.height())
 
                self["actions"] = HelpableActionMap(self, "CutListEditorActions",
                        {
@@ -405,4 +406,4 @@ def main(session, service, **kwargs):
        session.open(CutListEditor, service)
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name="Cutlist Editor", description=_("Cutlist editor..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc=main)
+       return PluginDescriptor(name="Cutlist Editor", description=_("Cutlist editor..."), where = PluginDescriptor.WHERE_MOVIELIST, needsRestart = False, fnc=main)