gtk3 programming in trisquel 5.0

8 réponses [Dernière contribution]
niyasc
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 09/14/2012

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

niyasc
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 07/12/2011

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

aliasbody
Hors ligne
A rejoint: 09/14/2012

You can use the adwaita theme from Gnome3

Horgeon
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 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
Hors ligne
A rejoint: 09/14/2012

We need a wiki like the Arch Wiki one.