From: Gary <gedumer@gmail.com>
Subject: Re: GtkAda using Glade
Date: Wed, 18 May 2011 06:58:52 -0700 (PDT)
Date: 2011-05-18T06:58:52-07:00 [thread overview]
Message-ID: <2e496d2c-f12f-4961-981b-2162fdf1ce1e@k3g2000prl.googlegroups.com> (raw)
In-Reply-To: ir0c4o$efh$1@dont-email.me
On May 18, 7:56 am, "J-P. Rosen" <ro...@adalog.fr> wrote:
> Le 18/05/2011 01:58, Gary a écrit :> 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?
>
> Fairly easy (don't listen to those who will try to explain how to do it
> by hand, it is sooo much easier with glade ;-) )
>
> Select the main window
> In the "signal" panel, under GtkWidget, select "delete-event"
> As the handler, select gtk_main_quit
I did that but the process is still running on Windows XP after I
close the app. The code that "Gate" generates does not look right to
me. It generates the following code in the "..._pkg_callbacks.adb"
function Gtk_Main_Quit
(Object : access Gtk_Widget_Record'Class;
Params : Gtk.Arguments.Gtk_Args) return Boolean
is
Arg1 : Gdk_Event := To_Event (Params, 1);
begin
return False;
end Gtk_Main_Quit;
This isn't right is it?
next prev parent reply other threads:[~2011-05-18 13:58 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
2011-05-18 11:56 ` J-P. Rosen
2011-05-18 13:58 ` Gary [this message]
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