Re: The theme of GTK+ 3.13.3 seems not right

Hash: SHA1

On 03.07.2014 8:40, qlb1234 wrote:
Dear ladies and gentlemen,

Recently I've migrated my GTK+ programs from 3.13.2 to 3.13.3. And this
is what it looks like. I'm showing you gtk3-demo.exe.

This is what 3.13.3 looks like.

And this is what 3.13.2 looks like.

Next time please attach images as files, or upload them somewhere and link
here. Not everyone reads messages in HTML.

Yes. I'm using Windows XP 32-bit.‚Äč My question is, how can I keep programs
compiled and linked with 3.13.3, look as pretty as 3.13.2?

I also noticed that the default theme of 3.13.3 has changed to Adwaita. 
Does this has anything to do with the theme? Is it because of my OS is 
Windows and I don't have the theme Adwaita installed?

My guess (without looking at the screenshots) is that you've witnessed the
difference between Adwaita (the new default theme everywhere) and gtk-win32
(the old default theme on Windows).

You can force GTK to use a different theme by settings GTK_THEME=gtk-win32
environment variable or by adding


to (root)/etc/gtk-3.0/settings.ini

Note, however, that gtk-win32 theme was broken along the way. Currently most
widgets have 0 padding (which makes them kind of small-ish).
Also, one of the releases (3.13.5, i think, or somewhere around) lacks the
gtk-win32 theme (someone forgot to add it to the EXTRA_DIST). This was fixed
in master.

I've managed to make && make install adwaita-icon-theme-3.13.3 and
gnome-themes-standard-3.13.3. After installation, I created a folder named
"share" alongside to my GTK+ program, and copied /share/themes and 
/share/icons into it. When I run my program, it remains the same. Did I
have the wrong packages installed, or a wrong way to solve it?

Maybe you need to rebuild icon cache?
Like this:
(root)/bin/gtk-update-icon-cache-3.0 -f -t (root)/share/icons/hicolor
(root)/bin/gtk-update-icon-cache-3.0 -f -t (root)/share/icons/gnome
(root)/bin/gtk-update-icon-cache-3.0 -f -t (root)/share/icons/Adwaita

And don't forget to update immodules and glib schemas.
Also, you may need gnome-icon-theme-symbolic (beside gnome-icon-theme). I'm
not sure how many icon themes are required these days. And you'll need
librsvg with a gdk-pixbuf loader for svg files (otherwise you won't see
symbolic icons).

- -- 
O< ascii ribbon - stop html email! -
Version: GnuPG v1.4.11 (MingW32)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]