From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Gtkada, Gtkada_Builder.Add_From_String problem.
Date: Mon, 8 Aug 2016 18:01:45 +0200
Date: 2016-08-08T18:01:45+02:00 [thread overview]
Message-ID: <noaad7$s6u$1@gioia.aioe.org> (raw)
In-Reply-To: 995dcf3b-cc66-4179-8922-1a0b0d71d68a@googlegroups.com
On 2016-08-08 16:54, George J wrote:
> And for " never use GLADE or XML " : i don't know how to make
> beautiful and understandeable GUI with Ada in other way. Could you
> suggest something?
It is not Ada specific.
GTK is designed with widgets having no fixed layout in mind. There is a
complex mechanism how children widgets communicate with the parameters
in order to obtain their sizes. A GUI builder does not work well in this
environment. It does not work well even when widgets are fixed, e.g.
Win32 GDI with MS resource editor. Then GTK is permanently under
incompatible changes. GLADE is poorly maintained and never catches up
with the changes. All this makes GLADE programs practically unmaintainable.
Just create widgets and put them into containers (boxes, grids, tables)
from the program. Always create your specific widgets by deriving from
existing ones (usually containers) and doing initialization in
Initialize, which you call from Gtk_New. Use GTK signals and properties.
You can define new signals and properties for your widgets when necessary.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2016-08-08 16:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 13:24 Gtkada, Gtkada_Builder.Add_From_String problem George J
2016-08-08 14:34 ` Dmitry A. Kazakov
2016-08-08 14:54 ` George J
2016-08-08 16:01 ` Dmitry A. Kazakov [this message]
2016-08-08 16:42 ` George J
2016-08-08 19:08 ` Dmitry A. Kazakov
2016-08-08 22:41 ` olivermkellogg
2016-08-09 3:08 ` George J
2016-08-09 8:06 ` Dmitry A. Kazakov
2016-08-09 3:00 ` George J
2016-08-09 3:10 ` George J
2016-08-09 3:40 ` George J
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox