how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Lukasz Gromotowicz
Hi all, the problem is when loading windows from the xml file: glade_xml = glade_xml_new(ami.glade,NULL,NULL); I need to know the reference to main window (GtkWindow) to be able to destroy it, yes? I can get it like this: window = glade_xml_get_widget(glade_xml,window1); and

Re: how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Jim George
On Dec 6, 2007 4:46 AM, Lukasz Gromotowicz [EMAIL PROTECTED] wrote: Hi all, the problem is when loading windows from the xml file: glade_xml = glade_xml_new(ami.glade,NULL,NULL); I need to know the reference to main window (GtkWindow) to be able to destroy it, yes? I can get it like

Re: how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Lance Dillon
- Original Message From: Jim George [EMAIL PROTECTED] To: Lukasz Gromotowicz [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Sent: Thursday, December 6, 2007 8:45:24 AM Subject: Re: how to destroy window if ptr to mainWindow not known On Dec 6, 2007 4:46 AM, Lukasz Gromotowicz

Re: how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Lukasz Gromotowicz
Maybe you are right. The problem appeared when I have updated the software and .glade but forgot to copy .glade to the destination machine. I could not see any messages, program just did not start. It took me some time to find the problem. It looks like I have to live with it ;0 regards, LUK

Re: how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Jens Sauer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lukasz Gromotowicz schrieb: Hi all, the problem is when loading windows from the xml file: glade_xml = glade_xml_new(ami.glade,NULL,NULL); I need to know the reference to main window (GtkWindow) to be able to destroy it, yes? I can get

Re: how to destroy window if ptr to mainWindow not known

2007-12-06 Thread Lukasz Gromotowicz
I do check glade_xml_new() and all glade_xml_get_widget() for NULL return. Problem is that the gtk_main() is already running as I create new windows in events / callbacks from the existing window. All I would like to do is not to create and not to show the new window if there are any problems.