GTK Windows fail to reload correctly after being destroyed

Bug #237506 reported by Chris Oliver
2
Affects Status Importance Assigned to Milestone
Envy
Incomplete
Undecided
Unassigned

Bug Description

When you close any of the windows, such as the About window or the terminal window with the 'X' attempting to load the window again fails. Its because the windows are only loaded the first time when the glade file is loaded initially. Simple fix is to reload the glade file into a separate variable each time the windows are opened and then destroy them on exit.

Example, provided the About window is a dialog:

self.wTreeAbout = gtk.glade.XML(self.gladefile, "dlgAbout") #Reloads the window
self.dlg = self.wTreeAbout.get_widget("dlgAbout") #Assign dialog to var
self.dlg.run() #Run dialog infinite loop until a value is returned
self.dlg.destroy() #Destroy window

Chris Oliver (excid3)
Changed in envy:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.