Bad appearance of gtkmm program

I am writing with my friends a simple photo viewer in C ++ using gtkmm. Everything is going well, except that our application looks very bad and is completely different from any other GTK + application on our Linux desktops. If anyone can give us advice on what we are doing wrong, we would be very grateful.

The code responsible for creating the window is here (the rest is in the repository): https://github.com/jjkrol/ZPR/blob/master/src/gui.cpp

Screenshot with view:
Screenshot with the look

Any help would be appreciated, thanks in advance!

+3


source to share


1 answer


GTK 3.0 has a different theme than GTK 2.0. Probably any of your other GTK + applications are still 2.0 dependent, so you didn't set a theme for 3.0. Find out how to install it eg. Adwaita in a desktop environment.



Btw: take a look Glib::RefPtr<>

.

+5


source







All Articles