comp.lang.ada
 help / color / mirror / Atom feed
* GTk3 without the Gtkbuilder and Glad
@ 2016-06-10 18:16 ldries46
  2016-06-10 18:38 ` Jeffrey R. Carter
  2016-06-10 19:55 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 8+ messages in thread
From: ldries46 @ 2016-06-10 18:16 UTC (permalink / raw)


For a number of reasons I want to use Gtk3 without using Glade and 
GtkBuilder. I am Building A template program now and I just came to a 
problem I just could not find documentation about.

I want to create a Callback routine that in each case where the program can 
be stopped can be called. Let us say : On_Quit.
I can make that routine and let it run from the menu or some error, But I 
cannot find the way to run this routine from the destroy button of the 
window. How should I do that?

For information the call back routine has the following code:

procedure On_Quit(Object : access Gtk_Menu_Item_Record'Class) is
   pragma Unreferenced (Object);
begin
   -- At this point the ini files must be closed. All ini files are updated
   -- and closed with one call to Close_IIni
   -- If no Init Files are used then this call can be deleted
   Close_Ini;
   Gtk.Main.Main_Quit;
end On_Quit;

I hope someone can help me

L. Dries 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-13 15:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-10 18:16 GTk3 without the Gtkbuilder and Glad ldries46
2016-06-10 18:38 ` Jeffrey R. Carter
     [not found]   ` <575bcceb$0$28281$e4fe514c@news.kpn.nl>
2016-06-11 17:38     ` Jeffrey R. Carter
2016-06-12  7:50       ` ldries46
2016-06-12 17:10         ` Jeffrey R. Carter
2016-06-13  7:40           ` ldries46
2016-06-13 15:50             ` Jeffrey R. Carter
2016-06-10 19:55 ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox