Update of /cvsroot/freevo/freevo/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24103
Modified Files:
Window.py
Log Message:
handle crash
Index: Window.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/gui/Window.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Window.py 13 Jun 2004 19:21:39 -0000 1.2
--- Window.py 23 Jun 2004 20:23:57 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
#-----------------------------------------------------------------------
# $Log$
+ # Revision 1.3 2004/06/23 20:23:57 dischi
+ # handle crash
+ #
# Revision 1.2 2004/06/13 19:21:39 dischi
# prevent strange crash
***************
*** 69,73 ****
parent.add_child(self)
!
self.osd.add_app(self)
--- 72,76 ----
parent.add_child(self)
!
self.osd.add_app(self)
***************
*** 92,95 ****
--- 95,101 ----
+ def add_child(self, child):
+ if self.content:
+ self.content.add_child(child)
def __init__content__(self):
***************
*** 101,105 ****
self.content = Container('frame', x, y, width, height, vertical_expansion=1)
GUIObject.add_child(self, self.content)
- self.add_child = self.content.add_child
# adjust left to content
--- 107,110 ----
***************
*** 176,179 ****
--- 181,193 ----
self.content.parent = self
+ if not self.parent:
+ print
'******************************************************************'
+ print 'Error: window has no parent, not showing...'
+ print 'If you can reproduce this error message, please send a'
+ print 'mail with the subject \'[Freevo-Bugreport] GUI\' to'
+ print '[EMAIL PROTECTED]'
+ print
'******************************************************************'
+ return
+
self.content.surface = self.content.get_surface()
self.content.draw()
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog