[gtkada] Eeeeeeeeeeeeeek!

Dmitry A. Kazakov mailbox at dmitry-kazakov.de
Mon Jul 29 14:10:27 CEST 2013


On Mon, 29 Jul 2013 12:40:17 +0200, you wrote:

>> I think you should redesign your application, it will not work otherwise.
>> Note that other relevant stuff was changed as well. Size request is gone.
>> The only workable way to capture widow being resized is again from draw
>> (checking allocated area of the widget).
> 
> In fact, you are likely looking for the "size-allocate" event here, not the size
> request (which indeed is different now, using the Get_Preferred_Width and
> Get_Preferred_Height instead).
> 
> Or perhaps the "configure-event".

Rather this. However the configure event cannot be caught. At least I
failed to do it no matter what event masks or event boxes I tried. Probably
it is a bug in the Gtk for Windows, which has an incredible number of. E.g.
GtkColorButton just crashes when pressed. There is something terribly wrong
with dialog boxes that cause them sporadically crash (I did not figure
when) etc.

BTW, the binaries AdaCore distributes, how were they obtained? Officially
there is no Gtk 3.x distribution for Windows. Neither GIMP 3.x exists
(usually GIMP is a reliable source to get Windows Gtk binaries).

I tried to compile GtkSourceView under MinGW but it did not work with the
binaries from GNAT GPL, which have a quite outdated version 3.4 vs 3.8(9).

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


More information about the gtkada mailing list