[gtkada] Gdk.Drawable example

Emmanuel Briot briot at gnat.com
Tue Jan 2 11:06:32 CET 2001


 > I am a beginner with GtkAda. At the end of section "Package
 > Gdk.Drawable" in GtkAda Reference Manual (Version 1.2.10) there is a
 > small example. This example compiles correctly with gnat-3.13p (Win95).
 > However, I was not able to build an executable file. Does this example
 > need something else?


This is in now way a complete example.
It is missing several required things, like a call to Gtk.Main.Init to
initialize the toolkit, the creation of a main window (like
Gtk.Window.Gtk_New), the display of that window (Gtk.Widget.Show), and the
start of the event loop (Gtk.Main.Main).

Look at other examples to see how to do these things.

Draw is a low-level example on how to directly draw in a window. You should
look at it only once you know the basics of the rest GtkAda.

Good luck,

Emmanuel




More information about the gtkada mailing list