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
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
- 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
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
-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
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.