You are not logged in.

#1 2012-06-12 19:58:35

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

[Solved] GTK3 menus - what component do they need?

Hello.

I use IceWM and have some GTK3 apps. The GTK3 theme is configured and displayed correctly but not menus. They don't have borders and shadows:

952012_06_12_234951_1680.png

I didn't install Gnome 3 and not willing to install it. But maybe my system misses some component of it and thus unable to show menus fully? There are other threads here about problems with GTK3 appearance but those are about people not able to make GTK3 show Adwaita theme which is not my case. What do I have to do to fix menus?

$ cat ~/.config/gtk-3.0/settings.ini 
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome

# next option is applicable only if selected theme supports it
gtk-application-prefer-dark-theme = false

# set font name and dimension
gtk-font-name = Sans 10

Last edited by Mr. Alex (2012-06-16 12:07:49)

Offline

#2 2012-06-13 05:30:04

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [Solved] GTK3 menus - what component do they need?

I think you need metacity mutter.

Offline

#3 2012-06-13 08:07:27

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

I installed

gobject-introspection-1.32.1-2  libgtop-2.28.4-1  zenity-3.4.0-1  metacity-2.34.3-1  mutter-3.4.1-2

but menus still look the same.

Offline

#4 2012-06-13 09:02:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] GTK3 menus - what component do they need?

Have you installed the relevant lib packages?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-06-13 09:06:56

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

What are those lib packages?
Or you mean are all the packages up to date?

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 mate is up to date
:: Starting full system upgrade...
warning: flashplugin: ignoring package upgrade (11.1.102.63-1 => 11.2.202.236-1)
 there is nothing to do

Offline

#6 2012-06-13 09:09:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] GTK3 menus - what component do they need?

Mr. Alex wrote:

What are those lib packages?


Read. the. Fine. Wiki.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-06-13 09:32:56

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

Thus for uniform UI appearance and best experience one can use style that has both GTK+ 2.x and GTK+ 3.x themes. Search packages and AUR. One example of this is theme clearwaita-gtk-theme.

As for uniform UI appearance - I don't need it.

If you use a GTK+ 2.x based DE, like Xfce, LXDE, gnome-tweak-tool won't work; see FS#23644. You need to install librsvg

It is installed.

and set your theme manually in {XDG_CONFIG_HOME}/gtk-3.0/settings.ini (this is usually ~/.config/gtk-3.0/settings.ini

Also done - in the first post.

If it still does not change, delete old gtk-3.0 folder in {XDG_CONFIG_HOME} and copy gtk-3.0 folder from /path-to-the-theme to {XDG_CONFIG_HOME}.

Done.

So there's nothing in the wiki I haven't done.

Offline

#8 2012-06-13 10:34:15

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

Found similar case: http://my.opera.com/community/forums/to … id=1135872
But this user seems to run the whole Gnome Shell and still doesn't have fully drawn menus.

Offline

#9 2012-06-14 09:37:14

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

Hey guys, no ideas? Maybe it has something to do with using lxappearance for configuring GTK2? This is really annoying now that every GTK app tends to switch to GTK3...

Offline

#10 2012-06-16 11:14:00

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

Does anyone run GTK3 apps in WM without Gnome Shell installed? How do they look? Same thing?

Offline

#11 2012-06-16 11:28:28

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] GTK3 menus - what component do they need?

Mr. Alex wrote:

Does anyone run GTK3 apps in WM without Gnome Shell installed? How do they look? Same thing?

I am using XFCE with xfwm and gnome-shell has been removed yesterday.  Adwaita has no borders around menus, Shadows under menus are toggled with the compositor option for shadows under popup windows. Other themes like Graybird or Oxybird have a border around menus.

Last edited by progandy (2012-06-16 11:28:48)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2012-06-16 11:49:24

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [Solved] GTK3 menus - what component do they need?

yes, it seems like the Adwaita theme assumes that you have compositing enabled and therefore have borders.
I just switched to i3 and have the same issue, so I had a look at the theme configuration and created a workaround:

~/.config/gtk-3.0/gtk.css

.menu {
	border: 1px solid gray;
}

Offline

#13 2012-06-16 11:58:24

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

progandy wrote:

Other themes like Graybird or Oxybird have a border around menus.

That will do, thanks. Although Greybird is pretty ugly.

Offline

#14 2012-06-16 12:04:50

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] GTK3 menus - what component do they need?

65kid wrote:

yes, it seems like the Adwaita theme assumes that you have compositing enabled and therefore have borders.
I just switched to i3 and have the same issue, so I had a look at the theme configuration and created a workaround

Thanks for a tip!

.menu {
  border: 2px solid DarkSlateGray;
  background: #EDEDED;
}

That's already something. smile

Offline

Board footer

Powered by FluxBB