Support for GTK version 3

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Support for GTK version 3

Post by uwekel »

Hi!

As a Linux user, when can we expect to have language bindings to GTK version 3? Version 2 is absolutely obsolete and the current version is 3.6.1!

Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Support for GTK version 3

Post by uwekel »

Dear PB team, do you have any plans to implement GTK3 bindings?
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Support for GTK version 3

Post by Fred »

Well for now GTK2 seems supported by any mainstream linux distro so there is no immediate plans to add such support. That said, it will happen, indeed.
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Support for GTK version 3

Post by uwekel »

Thanks Fred for the quick response.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Support for GTK version 3

Post by fsw »

Actually I read somewhere:
When GNOME3 was released the devs made it impossible to have GNOME2 and 3 on the same machine (by making the package/library names clash).
So when I decide to use a Linux distro with a GNOME3 base for their GUI (like Elementary) will PB still work?

Thanks

I am to provide the public with beneficial shocks.
Alfred Hitshock
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Support for GTK version 3

Post by uwekel »

So when I decide to use a Linux distro with a GNOME3 base for their GUI (like Elementary) will PB still work?Thanks
Since a couple of days i am running Fedora 18 (64-bit) with the Gnome desktop version 3.6.2. Every application supplied by Fedora uses GTK3. PureBasic 5.10 Beta 4 still runs without any problems. Because PB uses GTK2, it's widgets render different from GTK3. The widgets are also very old and do not have all the most recent features (e.g. the ListIconGadget cannot render progressbar in list column). But this is also a problem of a multi-platform development: to be compatible, you have to limit the features to the minimum possible on all systems :-(
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Support for GTK version 3

Post by freak »

fsw wrote:Actually I read somewhere:
When GNOME3 was released the devs made it impossible to have GNOME2 and 3 on the same machine (by making the package/library names clash).
So when I decide to use a Linux distro with a GNOME3 base for their GUI (like Elementary) will PB still work?

Thanks
gnome <> gtk

Gtk programs don't need gnome to run. There is no reason why it shouldn't work.
quidquid Latine dictum sit altum videtur
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Support for GTK version 3

Post by fsw »

Sorry for asking my question in the most horrible way.

My question should have pointed to GTK3 libraries and not GNOME3.
(PB uses GTK2 libraries and I implied that GNOME3 relies on GTK3 so there are no GTK2 libraries when GTK3 is installed...)

...

But uwekel already answered it: besides graphical artifacts it seems to work.

Thank you both.

I am to provide the public with beneficial shocks.
Alfred Hitshock
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Support for GTK version 3

Post by fsw »

Actually, now I can answer my own question:

Installed elementary OS and also installed PB5.1b5 and libgtk2-devel onto the GTK3 system.
No hiccups so far.
Will do more testing...

BTW: This Linux distro is still in beta but... man, what a beautiful system, very thought through.
It's a keeper.

I am to provide the public with beneficial shocks.
Alfred Hitshock
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Support for GTK version 3

Post by uwekel »

Indeed Elementory OS looks pretty cool! Maybe i'll try it out.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Support for GTK version 3

Post by Danilo »

fsw wrote:Installed elementary OS and also installed PB5.1b5 and libgtk2-devel onto the GTK3 system.
No hiccups so far.
Will do more testing...
We had a topic in german forum:
PB works on GTK2 and GTK3 Linux system, but compiled executables don't work on the other system.

Binaries compiled on Ubuntu 10.04 did not run on Ubuntu Studio 12.04.
Binaries compiled on Ubuntu Studio 12.04 did not run on Ubuntu 10.04.

The user released compiled binaries and got that feedback from users, so he tested it
and got the above results.
It could mean you have to compile binaries for 32 and 64bit on a GTK2 and on a GTK3 system (4 versions altogether),
if you want to release binaries for your Linux game/app.

Maybe Fred and freak want to check that (and add it to documentation if it is #True).
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Support for GTK version 3

Post by fsw »

Danilo, thanks for the information.

I am to provide the public with beneficial shocks.
Alfred Hitshock
User avatar
Shardik
Addict
Addict
Posts: 2058
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Support for GTK version 3

Post by Shardik »

Danilo wrote:We had a topic in german forum:
PB works on GTK2 and GTK3 Linux system, but compiled executables don't work on the other system.

Binaries compiled on Ubuntu 10.04 did not run on Ubuntu Studio 12.04.
Binaries compiled on Ubuntu Studio 12.04 did not run on Ubuntu 10.04.

The user released compiled binaries and got that feedback from users, so he tested it
and got the above results.
It could mean you have to compile binaries for 32 and 64bit on a GTK2 and on a GTK3 system (4 versions altogether),
if you want to release binaries for your Linux game/app.
Sorry, but that's simply not true. The German users tried to run a 64 bit binary (contained in the linked archive) on 32 bit distributions. I therefore recompiled the source to a x86 binary and was able to start this binary in 14 different distributions without any problems. So it's definitely not a problem with GTK2 and GTK3 as long as the GTK2 libararies are installed. For details please take a look into my German forum posting...
Post Reply