sujoy
April 2nd, 2009, 04:35 PM
I have the main window and the about dialog in one glade file and a preferences window in another glade file.
The problem is that I can show the preferences window, but havent yet managed to destroy it. I tried using both the delete event and the destroy signal, still, nothing works(read no activity whatsoever). However, once I close the main window, I can then close the preferences window normally. :confused:
Can someone please guide me to a solution or even a link maybe?
main.c file here (http://dpaste.com/22632/)
callback.c file here (http://dpaste.com/22633/)
preferences.c file here (http://dpaste.com/22634/)
gui.xml file here (http://dpaste.com/22636/)
preferences.xml file here (http://dpaste.com/22637/)
Another strange thing is that, after preferences window is displayed, if i click the close button on the main_window i quit the main window instantly and then i can click on the close button in preferences to close it normally. However, if after displaying preferences, I click on the quit menu, then nothing happens, and i can either click quit again or close the main_window both of which directly quits the application.
The problem is that I can show the preferences window, but havent yet managed to destroy it. I tried using both the delete event and the destroy signal, still, nothing works(read no activity whatsoever). However, once I close the main window, I can then close the preferences window normally. :confused:
Can someone please guide me to a solution or even a link maybe?
main.c file here (http://dpaste.com/22632/)
callback.c file here (http://dpaste.com/22633/)
preferences.c file here (http://dpaste.com/22634/)
gui.xml file here (http://dpaste.com/22636/)
preferences.xml file here (http://dpaste.com/22637/)
Another strange thing is that, after preferences window is displayed, if i click the close button on the main_window i quit the main window instantly and then i can click on the close button in preferences to close it normally. However, if after displaying preferences, I click on the quit menu, then nothing happens, and i can either click quit again or close the main_window both of which directly quits the application.