Since GTK3 my programs look awful on some distris

Linux specific forum
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Since GTK3 my programs look awful on some distris

Post by Didelphodon »

I found out that since PB's change to GTK3 my programs look pretty awful on some distris (REMnux i.e.). Switching back to GTK2 is not possible, though, as the compile step afterwards throws a bunch of linker errors.

The following screenshots (note that the GUI layout has changed intentionally over the last versions) shows how the controls suck (hard corners, etc.) now (and scrollbars ruin the whole scene if there are some) ...

GTK2:
Image

GTK3:
Image

Is there anything I can do?
Go, tell it on the mountains.
DarkDragon
Addict
Addict
Posts: 2228
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by DarkDragon »

It should be dependent on your GTK3 theme. Have you tried using a different one? Here are some:
https://www.gnome-look.org/browse/cat/135/ord/latest/

The default theme on gnome is adwaita.
bye,
Daniel
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by Didelphodon »

Hm, played around a bit but nothing changes. However, what I'm not sure is, I changed the theme with lxappearance but it seems to not influence my application in any way, though it surely has an impact on every other - is changing the wrong GTK? Not sure how I can specifically change GTK3 or GTK2 - how do I find out in which mode my program is running?
Go, tell it on the mountains.
DarkDragon
Addict
Addict
Posts: 2228
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by DarkDragon »

Didelphodon wrote:Hm, played around a bit but nothing changes. However, what I'm not sure is, I changed the theme with lxappearance but it seems to not influence my application in any way, though it surely has an impact on every other - is changing the wrong GTK? Not sure how I can specifically change GTK3 or GTK2 - how do I find out in which mode my program is running?
This should help: https://wiki.archlinux.org/index.php/GT ... figuration
GTK+ 3 user specific: $XDG_CONFIG_HOME/gtk-3.0/settings.ini, or $HOME/.config/gtk-3.0/settings.ini if $XDG_CONFIG_HOME is not set
GTK+ 3 system wide: /etc/gtk-3.0/settings.ini
bye,
Daniel
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by Didelphodon »

Installed the gtk3 oxygen theme via apt-get, selected it through lxappearance (which had it listed then) which finally made my app looking good again.

Thx for hints!
Go, tell it on the mountains.
User avatar
marcoagpinto
Addict
Addict
Posts: 947
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by marcoagpinto »

To use GTK2 in the subsystem or sublibrary write: gtk2

You must have the GTK2 package:
sudo apt-get install libgtk2.0-dev

I too am still using the gtk2 because of issues with the 3.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 448
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Since GTK3 my programs look awful on some distris

Post by Didelphodon »

marcoagpinto wrote:To use GTK2 in the subsystem or sublibrary write: gtk2

You must have the GTK2 package:
sudo apt-get install libgtk2.0-dev

I too am still using the gtk2 because of issues with the 3.
If you are using specific things like Scintilla you're bound to 3 as you'd get compiler errors with 2 - at least I do.
Go, tell it on the mountains.
mocitymm
User
User
Posts: 37
Joined: Wed Feb 08, 2017 6:56 pm

Re: Since GTK3 my programs look awful on some distris

Post by mocitymm »

marcoagpinto wrote:To use GTK2 in the subsystem or sublibrary write: gtk2

You must have the GTK2 package:
sudo apt-get install libgtk2.0-dev

I too am still using the gtk2 because of issues with the 3.
Speaking of which... and this is a 'noob' to PureBasic question, per the above quoted comments; can you force PureBasic to use a specific GTK library over the standard one installed (as in v.2 over v.3)?

And if you can, where might I find information on that?

Thanks.
Post Reply