Page 1 of 1

Since GTK3 my programs look awful on some distris

Posted: Mon Dec 12, 2016 12:58 pm
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?

Re: Since GTK3 my programs look awful on some distris

Posted: Mon Dec 12, 2016 2:23 pm
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.

Re: Since GTK3 my programs look awful on some distris

Posted: Mon Dec 12, 2016 2:55 pm
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?

Re: Since GTK3 my programs look awful on some distris

Posted: Mon Dec 12, 2016 3:00 pm
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

Re: Since GTK3 my programs look awful on some distris

Posted: Mon Dec 12, 2016 4:01 pm
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!

Re: Since GTK3 my programs look awful on some distris

Posted: Sun Jan 08, 2017 5:26 pm
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.

Re: Since GTK3 my programs look awful on some distris

Posted: Mon Jan 09, 2017 10:31 am
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.

Re: Since GTK3 my programs look awful on some distris

Posted: Wed Feb 08, 2017 9:11 pm
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.