Hi,
i cannot see anything of GTK3. When i compile and run on linux, i only get the GTK2 widgets (best compared by the SpinGadget which has been deeply re-designed). What has to be done to get the GTK3 widgets?
Best regards
Uwe
PB 5.20 B2 GTK3 subsystem for Linux
PB 5.20 B2 GTK3 subsystem for Linux
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.20 B2 GTK3 subsystem for Linux

Gadget.pb from example dir with and without subsystem gtk3
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: PB 5.20 B2 GTK3 subsystem for Linux
you need to specify "gtk3" in the subsystem field of the compiler options.
Re: PB 5.20 B2 GTK3 subsystem for Linux
The Gtk3 SpinButton normally renders like this (with +/-buttons inside):

The PB SpinGadget looks like always. Isn't it inherited from GtkSpinButton?

The PB SpinGadget looks like always. Isn't it inherited from GtkSpinButton?
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Re: PB 5.20 B2 GTK3 subsystem for Linux
You are right, this one is custom made, probably because GtkSpinButton didn't exists in old version of GTK
Re: PB 5.20 B2 GTK3 subsystem for Linux
Compiling PB examples while adding GTK3 as subsystem results in an linker error:
...undefined reference to symbol 'XInternAtom'.
Library libX11.so.6 is on the system as well...
BTW same files with GTK2 compile as expected.
Linux OS: Manjaro XFCE
...undefined reference to symbol 'XInternAtom'.
Library libX11.so.6 is on the system as well...
BTW same files with GTK2 compile as expected.
Linux OS: Manjaro XFCE
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PB 5.20 B2 GTK3 subsystem for Linux
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: PB 5.20 B2 GTK3 subsystem for Linux
ts-soft,
I tried to add the missing lib to the linker (compiler options) but it didn't work.
As always: you have the answerrs.
Thank you.
I tried to add the missing lib to the linker (compiler options) but it didn't work.
As always: you have the answerrs.
Thank you.
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: PB 5.20 B2 GTK3 subsystem for Linux
you can edit the ld.so.conf as root:
/etc/ld.so.conf
Add the path to missing lib like
/usr/lib
or
/usr/lib64
or
/usr/lib32
than in terminal as root
ldconfig
or
sudo ldconfig
/etc/ld.so.conf
Add the path to missing lib like
/usr/lib
or
/usr/lib64
or
/usr/lib32
than in terminal as root
ldconfig
or
sudo ldconfig
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: PB 5.20 B2 GTK3 subsystem for Linux
With GTK2 the WebBrowser example works as expected, the gadgets are resized accordingly when the main window is resized.
With GTK3 the WebBrowser main window resizes itself (right after the start); it's bigger than the desktp size.
It's also unresponsive...
Bummer
Are the examples not tested before release of a beta?

With GTK3 the WebBrowser main window resizes itself (right after the start); it's bigger than the desktp size.
It's also unresponsive...
Bummer

Are the examples not tested before release of a beta?

I am to provide the public with beneficial shocks.
Alfred Hitshock