gtk3 programming in trisquel 5.0

8 respostas [Última entrada]
niyasc
Desconectado
Joined: 07/12/2011

Hi,
Nowadays I'm doing some gtk+ programming. When I use gtk+-2.0 to compile my program it compiles successfully and runs in system's native theme.

But when I use gtk+-3.0 to compile ,after successful compilation , when I run program it appears in a classic look(Something similar to windows 98).
How can I solve this issue so that it will use system theme.

aliasbody
Desconectado
Joined: 09/14/2012

Are you using any particular IDE or are you compiling with gcc or anything similar ?

niyasc
Desconectado
Joined: 07/12/2011

I'm not using any IDE.
I type
gcc `pkg-config --cflags --libs gtk+-3.0` -o
on terminal for compiling and building.

Horgeon
Desconectado
Joined: 03/29/2011

Trisquel 5.0 uses the gtk2 theme. You have to use a theme with gtk 3 support (gtk-3.0 folder in .themes/themename or /usr/share/themes/themename) and have the respective gtk3 engine installed (like unico)

niyasc
Desconectado
Joined: 07/12/2011

Horgeion,
Can you tell me the repository to install unico?

aliasbody
Desconectado
Joined: 09/14/2012

You can use the adwaita theme from Gnome3

Horgeon
Desconectado
Joined: 03/29/2011

mmm it's not in the repository. I have coded in gtk before and had the same problem you have now and IIRC I solved it but can't remember how.

niyasc
Desconectado
Joined: 07/12/2011

That is one problem with us :)
When ever we have some problem we search it in several places and do several things according to guide lines or some times as we think.
After that problem may be solved. But we may not be able to identify what actually solved the problem.

aliasbody
Desconectado
Joined: 09/14/2012

We need a wiki like the Arch Wiki one.