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:
GTK3:
Is there anything I can do?
Since GTK3 my programs look awful on some distris
- Didelphodon
- 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
Go, tell it on the mountains.
-
- Addict
- Posts: 2228
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Since GTK3 my programs look awful on some distris
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.
https://www.gnome-look.org/browse/cat/135/ord/latest/
The default theme on gnome is adwaita.
bye,
Daniel
Daniel
- Didelphodon
- 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
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.
-
- Addict
- Posts: 2228
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Since GTK3 my programs look awful on some distris
This should help: https://wiki.archlinux.org/index.php/GT ... figurationDidelphodon 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?
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
Daniel
- Didelphodon
- 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
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!
Thx for hints!
Go, tell it on the mountains.
- marcoagpinto
- Addict
- Posts: 947
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: Since GTK3 my programs look awful on some distris
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.
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.
- Didelphodon
- 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
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.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.
Go, tell it on the mountains.
Re: Since GTK3 my programs look awful on some distris
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)?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.
And if you can, where might I find information on that?
Thanks.