From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:7683:: with SMTP id r125mr3232097qkc.39.1593218822876; Fri, 26 Jun 2020 17:47:02 -0700 (PDT) X-Received: by 2002:a05:6830:61a:: with SMTP id w26mr4666135oti.178.1593218822544; Fri, 26 Jun 2020 17:47:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 26 Jun 2020 17:47:02 -0700 (PDT) In-Reply-To: <5ef5e571$0$1198$e4fe514c@news.kpn.nl> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=96.247.204.159; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 96.247.204.159 References: <5ef5e571$0$1198$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1d94b27a-21cf-4b66-86c8-aa453930018do@googlegroups.com> Subject: Re: Gdk_Monitor From: Jere Injection-Date: Sat, 27 Jun 2020 00:47:02 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59235 List-Id: On Friday, June 26, 2020 at 8:09:23 AM UTC-4, ldries46 wrote: > In the latest version of Gtkada for Windows on Adacore I cannot find > Gdk_Monitor. It seems that Gdk_Monitor is the only part in Gtk+ where it > is still possible to get the size in pixels of the monitor. All other > places where this can be done ar depreciated from version 3.22. Is there > somewhere a version of Gtkada that includes Gdk_Monitoring. > If not is there somewhere within the different operating systems where I > can find these parameters. I want a program that automatically adapts to > the screen size and doe not work with fullscreen windows I don't mess with GTK much, but a quick google search pointed me to the gdk_screen_XXXX functions. I searched AdaCore's current GtkAda repository for "gdk_screen" and it pointed me to the Gdk.Screen package in the generated folder. Have you tried them? I didn't see any deprecation remarks (though I didn't dig deep). https://github.com/AdaCore/gtkada/blob/d6dbc602911b4bb91519208185f4e615572e4079/src/generated/gdk-screen.ads