Frage

I'am writing with my friends a simple photo viewer in C++ using gtkmm. Everything goes quite well, except that our app is looking very poor and completely diffrent from any other GTK+ application on ours Linux desktops. If anyone could give us some advice about what are we doing wrong, we will be very grateful.

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 the look:
Screenshot with the look

Any help would be apprecieated, thanks in advance!

War es hilfreich?

Lösung

GTK 3.0 has a different theming than GTK 2.0. Probably any of your other GTK+ applications still depend on 2.0 so you don't have set a theme for 3.0. Find out how to set it to e.g. Adwaita in your desktop environment.

Btw: have a look at Glib::RefPtr<>.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top