comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: Where do I get my Cairo context from (in GTK3)?
Date: Tue, 26 Apr 2016 00:22:24 -0700 (PDT)
Date: 2016-04-26T00:22:24-07:00	[thread overview]
Message-ID: <0a9cf35e-45ba-49c1-9d6a-4a0da3457e70@googlegroups.com> (raw)
In-Reply-To: <nfl0pa$23u$1@gioia.aioe.org>

> Is it Signal_Name in Connect? Recent GtkAda changes broke a lot of 
> things. Try a plain string literal instead.

No they did not :-)

In fact, the code can be much simplified now:

   function Custom_Draw
       (Self : access Gtk_Widget_Record'Class;
        Cr    : Cairo.Cairo_Context) return Boolean is ...

   Obj.On_Draw (Custom_Draw'Access);     --  defined in gtk-widget.ads

No need for the marshallers any more in almost all cases. I recommend using
the new On_* procedures defined in all the GtkAda packages, they might signal
handling much easier, and safer too (since the compiler can check statically that
the signal is valid for the given widget)

  reply	other threads:[~2016-04-26  7:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-24 20:44 Where do I get my Cairo context from (in GTK3)? hreba
2016-04-25  7:40 ` Dmitry A. Kazakov
2016-04-25 10:03   ` hreba
2016-04-25 11:58     ` Dmitry A. Kazakov
2016-04-26  7:22       ` briot.emmanuel [this message]
2016-04-26  7:34         ` hreba
2016-04-27  7:47           ` briot.emmanuel
2016-04-27  8:08             ` Dmitry A. Kazakov
2016-04-28  7:48               ` briot.emmanuel
2016-04-27 13:15             ` hreba
2016-04-27 13:37               ` Dmitry A. Kazakov
2016-04-28  7:49                 ` briot.emmanuel
2016-08-05 15:56 ` borisgaertner56
replies disabled

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