Page 1 of 1

Support for GTK version 3

Posted: Tue Oct 23, 2012 8:57 pm
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

Re: Support for GTK version 3

Posted: Sun Jan 06, 2013 11:37 am
by uwekel
Dear PB team, do you have any plans to implement GTK3 bindings?

Re: Support for GTK version 3

Posted: Sun Jan 06, 2013 12:11 pm
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.

Re: Support for GTK version 3

Posted: Sun Jan 06, 2013 2:48 pm
by uwekel
Thanks Fred for the quick response.

Re: Support for GTK version 3

Posted: Tue Jan 22, 2013 9:53 pm
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

Re: Support for GTK version 3

Posted: Tue Jan 22, 2013 10:30 pm
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 :-(

Re: Support for GTK version 3

Posted: Tue Jan 22, 2013 10:35 pm
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.

Re: Support for GTK version 3

Posted: Wed Jan 23, 2013 12:08 am
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.

Re: Support for GTK version 3

Posted: Fri Jan 25, 2013 8:52 pm
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.

Re: Support for GTK version 3

Posted: Sat Jan 26, 2013 7:46 am
by uwekel
Indeed Elementory OS looks pretty cool! Maybe i'll try it out.

Re: Support for GTK version 3

Posted: Sat Jan 26, 2013 5:33 pm
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).

Re: Support for GTK version 3

Posted: Sun Jan 27, 2013 3:46 am
by fsw
Danilo, thanks for the information.

Re: Support for GTK version 3

Posted: Mon Jan 28, 2013 4:30 pm
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...