It seems only the sample.c causes this error reported to the console. Other IUP examples don't generate this error message.

On 2022-06-12 06:27, sur-behoffski wrote:
On 6/12/22 11:46, supp...@scriptbasic.org wrote:
Antonio,

I compiled with gcc the sample.c example and received this error in the
console window.

(sample:7337): Gtk-CRITICAL **: 19:13:39.493:
gtk_window_set_mnemonics_visible: assertion 'GTK_IS_WINDOW (window)'
failed

John
[...]

G'day,

Not verified, but an easy thing to check:

The X/11 Windowing system is client/server-based. An application(client) may run locally, or perhaps across a network. GNOME and Wayland add more
layers to the mix.

I tried:

You might have problems if the terminal/shell does not have a
reference to the X/11 windowing system,
supplied via the DISPLAY and XAUTHORITY environment variables.  This
is what I get on my system
(ignore the "$" shell prompts):

        $ set | grep -E DISPLAY
        DISPLAY=:0
        GNOME_SETUP_DISPLAY=:1
        WAYLAND_DISPLAY=wayland-0
        $

The trivial examples (called via Lua "require" interface) work with this setup.
If I stomp on WAYLAND_DISPLAY, then the "hello, world" example fails:

        $ export WAYLAND_DISPLAY=
        $ ./hello-world
        ../support/lua5.1: IupOpen: could not initialize
        stack traceback:
                [C]: ?
                [C]: in function 'require'
                ./hello-world:2: in main chunk
                [C]: ?
        $

Hope this helps.


s-b etc.


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to