[gtkada] Problems with type Rgb_Buffer in Gdk.Rgb and function Gtk_New in Gtk.File_Selection

Arnaud Charlet charlet at adacore.com
Sat Mar 10 19:09:09 CET 2007


> 1. My first problem is about package Gdk.Rgb and type Rgb_Buffer. This
> type seems already constrained, thus I can't constrain myself. But when I
> don't constraint it a storage error is raised. There's no function which
> return rgb_buffer, so I don't understanf how use it. I have seen one

Actually, there's a function, see Gdk.Pixbuf.Get_Pixels.

But clearly, the procedures taking a Rgb_Buffer in Gdk.Rbg are useless
as is, this will need to be fixed, thanks for reporting.

> 2. My second problem is about package gtk.file_selection. When I used
> fonction  procedure Gtk_New (File_Selection : out Gtk_File_Selection;
> Title : UTF8_String); my program raise this message : "process exited
> with status -1073741819". I tried function File_Selection_Dialog in the
> package Gtkada.File_Selection, and I obtained exactly the same message. I
> don't know why.

Gtk.File_Selection had some problems under Windows, so assuming you're under
Windows, I'd suggest applying the patch contrib/gtkada-2.10-win32.diff
from the GtkAda CVS.

Arno



More information about the gtkada mailing list