comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: GTk3 without the Gtkbuilder and Glad
Date: Fri, 10 Jun 2016 20:16:28 +0200
Date: 2016-06-10T20:16:28+02:00	[thread overview]
Message-ID: <575b0403$0$12046$e4fe514c@news.kpn.nl> (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 

             reply	other threads:[~2016-06-10 18:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 18:16 ldries46 [this message]
2016-06-10 18:38 ` GTk3 without the Gtkbuilder and Glad 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
replies disabled

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