Yes Jacky, that was exactly it! The solution was to use "gtk_widget_hide( window )".
Thanks! On Mon, 27 Feb 2012 11:36:14, jjacky <i am jack mail gmail com> wrote: > Hi, > > I'm guessing this is because you try to destroy the window while it's > still being used by GTK (to process signals, etc). > One solution could be to only hide it instead, and destroy it later on. > (For instance you could destroy it on a handler attached to unmap-event.) > > -j > > > On 02/27/2012 10:45 AM, Evonia Perrez wrote: > > hi, > > i created a selection-list that pops up when a user presses a button in the > > main window. > > Everything works fine until i try to destroy the selection-window after the > > user clicks an item from the list. If i do not try to destroy the window, > > the program does not crash, but the selection-window stays up and the user > > must force it closed from the window's tab [x]. i would like the > > selection-list to disappear automatically after the user picks an item, > > since many programs work this way. > > > > I condensed an example in the following program: > > ... _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list