From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:7d88:: with SMTP id c8mr1209439qtd.208.1631345888115; Sat, 11 Sep 2021 00:38:08 -0700 (PDT) X-Received: by 2002:a25:4789:: with SMTP id u131mr2163583yba.531.1631345887874; Sat, 11 Sep 2021 00:38:07 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Sep 2021 00:38:07 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=87.88.29.208; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 87.88.29.208 References: <6133e791$0$6461$426a74cc@news.free.fr> <6134cb26$0$3697$426a74cc@news.free.fr> <6134db32$0$6461$426a74cc@news.free.fr> <6134dc71$0$3693$426a74cc@news.free.fr> <6134e03d$0$3372$426a74cc@news.free.fr> <61352d42$0$3749$426a74cc@news.free.fr> <944e2cf6-2e24-480e-b7f7-0e0e0f5082e7n@googlegroups.com> <6139be6f$0$12704$426a74cc@news.free.fr> <757da468-7b58-43c2-95e6-917b3212f7b2n@googlegroups.com> <613bc32d$0$27421$426a74cc@news.free.fr> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GtkAda callback and event From: Emmanuel Briot Injection-Date: Sat, 11 Sep 2021 07:38:08 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62697 List-Id: > Even more frequent purpose is a composite widget. E.g. consider a text > edit widget with a scroll bar, a menu, some buttons etc. Typically, you > would take some existing widget and derive your widget from there. > > In the Initialize you will create all other widgets and pack them into > the widget (if it is a container) or Ref them otherwise. In Gtk_New you > will have custom parameters. I agree this is exactly the right design and the way we intended GtkAda to be used (supporting this was not completely trivial at first, though later versions of gtk+ made that simpler).