[gtkada] Getting draw in a drawable area

Preben Randhol randhol at pvv.org
Thu Mar 6 11:01:31 CET 2003


Jean-Etienne Doucet <doucet at laas.fr> wrote on 06/03/2003 (10:54) :
> |     Gdk.Drawable.Draw_Text
> |       (Drawable    => Gdkw,
> |        Font        => Font,
> |        Gc          => gc,
> |        X           => 50,
> |        Y           => 50,
> |        Text        => "Hello World");
> |     Gdk.GC.Destroy (GC);

Should the Destroy be used here? Isn't Unref better? I have not checked
this for gdk though.

> |    end Draw;

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»



More information about the gtkada mailing list