comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: GtkAda using Glade
Date: Tue, 17 May 2011 21:14:44 -0400
Date: 2011-05-17T21:14:44-04:00	[thread overview]
Message-ID: <nospam-4A3CF8.21144417052011@news.aioe.org> (raw)
In-Reply-To: 15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com

In article 
<15ff2ec1-5a2b-4d24-8aab-cf7985b6374f@t19g2000yql.googlegroups.com>,
 Gary <gedumer@gmail.com> wrote:

> I am evaluating Ada for a GUI app using GtkAda/Glade. I have the 
> latest version of Ada from AdaCore. I've had no problem getting small 
> example apps to work with and without Glade. What I am having a 
> problem with is setting up signals through Glade. I simply want to 
> set up the "delete" event for the main window so "gtk_main_quit" will 
> be executed. Exactly how do I do that? I have many years of 
> programming experience with many languages, but I am fairly new to 
> Ada... although it should just be a matter of working with it a bit 
> to get comfortable with it. The same goes for GTK+. I have 
> experimented with it using C, FreePascal, and FreeBasic... so I am 
> familiar with the concept if not the practice. I'm just not clear on 
> how to set up signals with Glade. I know you use the properties panel 
> under the "signals" tab, but I don't know what to put in the various 
> fields.

I'm afraid I haven't used Glade recently enough to offer detailed 
advice, but I recall studying the generated code when creating this 
example:

<http://home.roadrunner.com/~jbmatthews/gtk/lady.html>

In this tutorial,

<http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html>

the window destroy callback shown in C and Pyhton,

<http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html#Specifying_Callback_Functions_for>

corresponds roughly to this line in procedure Init:

Void_Cb.Connect (Win, "destroy", Void_Cb.To_Marshaller (Quit'Access));

Hope this helps.

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  reply	other threads:[~2011-05-18  1:14 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-17 23:58 GtkAda using Glade Gary
2011-05-18  1:14 ` John B. Matthews [this message]
2011-05-18 11:56 ` J-P. Rosen
2011-05-18 13:58   ` Gary
2011-05-18 17:25     ` Dmitry A. Kazakov
2011-05-18 18:24       ` Gary
2011-05-18 18:27         ` Ludovic Brenta
2011-05-18 18:42           ` Gary
2011-05-18 21:54             ` Ludovic Brenta
2011-05-18 22:09               ` Gary
2011-05-18 23:15                 ` Ludovic Brenta
2011-05-19  1:52                   ` Gary
2011-05-19  5:25               ` J-P. Rosen
2011-05-19  9:23                 ` Manuel Collado
2011-05-19  9:57                   ` J-P. Rosen
2011-05-18 20:19         ` Dmitry A. Kazakov
2011-05-18 20:45           ` Gary
2011-05-19  7:36             ` Dmitry A. Kazakov
2011-05-19 10:02               ` J-P. Rosen
2011-05-19 10:28                 ` Dmitry A. Kazakov
2011-05-19 15:53                   ` J-P. Rosen
2011-05-19 22:57                     ` Gary
2011-05-20  0:54                 ` Yannick Duchêne (Hibou57)
2011-05-20  1:41                 ` Nasser M. Abbasi
2011-05-20  7:19                   ` Dmitry A. Kazakov
2011-05-20  7:34                     ` Nasser M. Abbasi
2011-05-20  7:45                       ` Dmitry A. Kazakov
2011-05-20  0:26               ` Gautier write-only
2011-05-20  7:25                 ` Dmitry A. Kazakov
2011-05-20  9:50                   ` Yannick Duchêne (Hibou57)
2011-05-22  6:22                   ` Gautier write-only
2011-05-22  7:04                   ` Gautier write-only
2011-05-22  8:16                     ` Dmitry A. Kazakov
2011-05-20  0:49               ` Yannick Duchêne (Hibou57)
2011-05-20  7:36                 ` Dmitry A. Kazakov
2011-05-20  8:01                 ` Georg Bauhaus
2011-05-20 10:00                   ` Yannick Duchêne (Hibou57)
2011-05-20 12:55                     ` Georg Bauhaus
2011-05-19  5:18         ` J-P. Rosen
2011-05-19  5:12     ` J-P. Rosen
2011-05-18 23:31 ` Rick
2011-05-19  1:52   ` Gary
replies disabled

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