Page 1 of 1

GTK3 port for Linux version

PostPosted: Wed Mar 18, 2015 1:27 pm
by angrymadcat
Gtk2 is very outdated and old, I think that CEF 3 should use gtk3. It is necessary for better desktop integration, use of headerbars, title bars and other new cool gtk widgets. Is this possible??

Re: GTK3 port for Linux version

PostPosted: Wed Mar 18, 2015 2:37 pm
by magreenblatt
Yes, it's possible. Only the cefclient sample application currently depends on GTK2.

Re: GTK3 port for Linux version

PostPosted: Wed Mar 18, 2015 2:45 pm
by angrymadcat
So, in theory, the only thing I need to do is to use gtk3 headers instead gtk2? Then can I ask as a feature request to update the sample application to gtk 3? I want this because I want to use headerbars and dark theme on the linux cef client in Brackets.

thanks :D

Re: GTK3 port for Linux version

PostPosted: Wed Mar 18, 2015 5:06 pm
by magreenblatt
angrymadcat wrote:So, in theory, the only thing I need to do is to use gtk3 headers instead gtk2?

Maybe. Here's what's changed from GTK2 to GTK3: https://developer.gnome.org/gtk3/stable ... -to-3.html

angrymadcat wrote:Then can I ask as a feature request to update the sample application to gtk 3? I want this because I want to use headerbars and dark theme on the linux cef client in Brackets.

Sure, you can add a feature request. You'll likely need to implement it yourself. Patches are welcome.

Re: GTK3 port for Linux version

PostPosted: Mon Mar 23, 2015 1:58 pm
by PolesApart
Replacing gtk2 for gtk3 should be painless, sometimes it compiles out of box (very minor incompatibilities, depending on the widgets you use). But you'd need to implement gtk3 specific features on top of it.

Beware gtk3 is way more dependent on theming than gtk2, and it's theming specifics changes from version to version, so gtk 3.6 has some behavior, 3.10 other, and 3.14 onwards keep changing from version to version. It's losing it's simplicity in favor of arguable versatility in gnome style: "you can do lots of new stuff but you must do it *our* way".