[gtkada] Gtk.Main.Main_Quit; / raise exception

Thomas De Contes d.l.tDeContes at free.fr
Mon Feb 21 14:11:34 CET 2005


Le jeudi, 17 fév 2005, à 05:22 Europe/Paris, Thomas De Contes a écrit :

> hi :-)
>
> http://tDeContes.hd.free.fr/miseADisposition/contributions/ 
> mes%20programmes%20ada/packages%20ada%20persos/ig/fileselectionpkg- 
> callbacks.adb
>
>         procedure B_Cancel_Clicked
>                 (Object : access Gtk_Button_Record'Class)
>         is
>         begin
>
>                 Hide( Get_Toplevel( Object ) );
>                 Gtk.Main.Main_Quit;
>                 raise annulation;
>
>         end B_Cancel_Clicked;
>
>
> the fact of "raise annulation;" seems to disable the final quitting of  
> the application (with Gtk.Main.Main_Quit)
> but not for the recursives main loop

in fact, if i do new main loops after that, i can quit them,
but i can't quit all these i have already done recursively at the time  
of raise

>
> is it normal ?

is it an unexpected behaviour, and i just have to find a workaround,
or is there a good reason for that ?




More information about the gtkada mailing list