comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <f_hreba@yahoo.com.br>
Subject: Re: Where do I get my Cairo context from (in GTK3)?
Date: Tue, 26 Apr 2016 09:34:54 +0200
Date: 2016-04-26T09:34:54+02:00	[thread overview]
Message-ID: <do8k0uF8ojjU1@mid.individual.net> (raw)
In-Reply-To: <0a9cf35e-45ba-49c1-9d6a-4a0da3457e70@googlegroups.com>

On 04/26/2016 09:22 AM, briot.emmanuel@gmail.com wrote:
>> 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)
>

I would use On_* procedures if I didn't need user data. Until now no 
success.
-- 
Frank Hrebabetzky		+49 / 6355 / 989 5070

  reply	other threads:[~2016-04-26  7:34 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
2016-04-26  7:34         ` hreba [this message]
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