Ok, this is not a fix, but hopefully it would give some information of where the bug is. The handle is loaded and there's a new option ("New") in the applet's popup menu that loads the whole thing. Does it still crash when using this?
=== modified file 'dockbarx.py' --- dockbarx.py 2010-04-28 16:19:05 +0000 +++ dockbarx.py 2010-04-28 19:23:08 +0000 @@ -3891,18 +3891,19 @@ <menuitem name="About Item" verb="About" stockid="gtk-about" /> <menuitem name="Preferences" verb="Pref" stockid="gtk-properties" /> <menuitem name="Reload" verb="Reload" stockid="gtk-refresh" /> + <menuitem name="Load" verb="Load" stockid="gtk-new" /> </popup> """
self.pp_menu_verbs = [("About", self.on_ppm_about), ("Pref", self.on_ppm_pref), - ("Reload", self.reload)] + ("Reload", self.reload), + ("Load", self.idle_init)] self.applet.setup_menu(self.pp_menu_xml, self.pp_menu_verbs,None) self.applet_origin_x = -1000 # off screen. there is no 'window' prop self.applet_origin_y = -1000 # at this step self.applet.set_background_widget(applet) # background bug workaround self.applet.show_all() - gobject.idle_add(self.idle_init) else: self.container = gtk.HBox() self.orient = "h" @@ -3910,7 +3911,7 @@
- def idle_init(self): + def idle_init(self, event=None, data=None): # Import all stuff. later_imports() # self.dragging is used to tell functions wheter
Ok, this is not a fix, but hopefully it would give some information of where the bug is. The handle is loaded and there's a new option ("New") in the applet's popup menu that loads the whole thing. Does it still crash when using this?
=== modified file 'dockbarx.py'
<menuitem name="About Item" verb="About" stockid="gtk-about" />
<menuitem name="Preferences" verb="Pref" stockid= "gtk-properties " />
<menuitem name="Reload" verb="Reload" stockid= "gtk-refresh" />
< /popup>
--- dockbarx.py 2010-04-28 16:19:05 +0000
+++ dockbarx.py 2010-04-28 19:23:08 +0000
@@ -3891,18 +3891,19 @@
+ <menuitem name="Load" verb="Load" stockid="gtk-new" />
"""
- ("Reload", self.reload)]
+ ("Reload", self.reload),
+ ("Load", self.idle_init)]
- gobject.
else:
@@ -3910,7 +3911,7 @@
- def idle_init(self):
later_ imports( )
+ def idle_init(self, event=None, data=None):
# Import all stuff.
# self.dragging is used to tell functions wheter