Oh and another thing:

  gtk_signal_connect(GTK_OBJECT(entry), "delete_event",
                     GTK_SIGNAL_FUNC(window_deleted), NULL);
  gtk_signal_connect(GTK_OBJECT(entry), "destroy_event",
                     GTK_SIGNAL_FUNC(window_deleted), NULL);

You have connected both these signals to your "window_deleted" function
and not your "entry_deleted" function...

- Daniel

On Sun, 2005-10-02 at 11:39 +0530, Deekshit Mantampady wrote:
> Hi all,
>    I have an entry in  window with containment as
>    window > vbox > hbox >entry. (Code pasted below).
>   I registered for window delete_event, I call destroy on window, in
> the callback. I was expecting it to destroy the etry also. In that
> case destroy/delete event callback for entry should be called. But it
> does not happen.
>   In my real application, I need to free up memory allocated for a
> data structure(application specific) associated with the entry. I
> cannot do it when window is deleted.
> 
> Is there any way to catch, the event when the entry or any such widget
> is deleted ?
> 
> Please help me.

-- 
Daniel Pekelharing
<[EMAIL PROTECTED]>

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to