[gtkada] Widget destruction problem

Emmanuel Briot briot at gnat.com
Thu Jan 25 12:47:59 CET 2001


Keene, Glenn writes:
 > I have a widget (Window B) that is instantiated from an "Add" button in
 > another window (Window A) I am adding functionality to the buttons on the
 > newly created Window B. I have added the following call to the
 > "Cancel_Button" callback procedure on Window B:  "Gtk.Widget.Destroy_Cb
 > (Window B)". This works fine to destroy Window B. The problem is once Window
 > B is destroyed, Window A goes away. I do not want Window A to be destroyed
 > only Window B.  Any solutions?


There is no reason why A should go away given your description, so there might
be another problem in your code itself. Send an extract of your code for the
"Add" callback, as well as the one for the "Cancel" callback, perhaps someone
on the list will be able to see something wrong.

Emmanuel




More information about the gtkada mailing list