Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#48656 closed defect (fixed)

Weird double shadow on GTK3

Reported by: m.rick@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: neverpanic (Clemens Lang), dbevans (David B. Evans), landonf (Landon Fuller)
Port: gtk3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

With GTK3 applications, there are artefacts around the menus. There are double shadows.

It is not a MacPorts related issue because it has been reported in Linux as well. https://github.com/chjj/compton/issues/189

But it happens in at least 2 ports in MacPorts, Gnumeric and Glom, with the default theme or any other. And the problem, it makes it more difficult to use the menus especially with the contextual menus.

They give a working solution

shadow-exclude = [ "_GTK_FRAME_EXTENTS@:c" ];

But i don't know where to place it, I tried in settings.ini and the gtk.css main script inside the theme itself and none is working.

I put screen shots from Glom and Gnumeric.

Attachments (4)

Capture d’écran 2015-08-21 à 02.36.05.png (41.6 KB) - added by m.rick@… 9 years ago.
Glom menu
Capture d’écran 2015-08-21 à 11.00.47.png (23.2 KB) - added by m.rick@… 9 years ago.
Gnumeric
Capture d’écran 2015-08-21 à 11.00.57.png (12.2 KB) - added by m.rick@… 9 years ago.
Gnumeric
Capture d’écran 2015-08-21 à 11.01.05.png (15.0 KB) - added by m.rick@… 9 years ago.

Download all attachments as: .zip

Change History (13)

Changed 9 years ago by m.rick@…

Glom menu

Changed 9 years ago by m.rick@…

Gnumeric

Changed 9 years ago by m.rick@…

Gnumeric

Changed 9 years ago by m.rick@…

comment:1 Changed 9 years ago by m.rick@…

I have found a workaround

It is needed to add

.window-frame:backdrop {
  box-shadow: none;
  margin: 0;}

.window-frame:backdrop,
.window-frame,
.window-frame.tiled,
.window-frame.popup{
box-shadow:none;}

.window-frame.tooltip.csd,
.window-frame.popup.csd,
.window-frame.popup {
border-radius:0px;
box-shadow: none;
margin: 0px;}

at the end of the gtk.ccs file.

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: cal@… devans@… landonf@… added
Description: modified (diff)
Keywords: GTK3 removed

comment:3 Changed 9 years ago by dbevans (David B. Evans)

I can't reproduce this problem with current versions of gtk3 and gnumeric. I believe this was an issue with previous gtk3 versions but should be fixed now. Just to make sure that we're on the same page, what version of gtk3 and gnumeric do you have installed?

I'm using

$ port installed gtk3 gnumeric
The following ports are currently installed:
  gnumeric @1.12.23_0+python27 (active)
  gtk3 @3.16.6_0+x11 (active)

comment:4 Changed 9 years ago by m.rick@…

I installed Gnumeric 1.12.23/Glom 1.28.5 + GTK3 3.16.6

comment:5 Changed 9 years ago by dbevans (David B. Evans)

Is it an +x11 or +quartz build?

comment:6 Changed 9 years ago by su-v

Reproduced on Lion with Quartz backend of GTK+ 3.16.6, but not with X11 backend.

According to related upstream reports (749504, 734984), this is fixed for the Quartz backend in current gtk+ git master (probably commit 2c329f5b).

comment:7 Changed 9 years ago by dbevans (David B. Evans)

Thanks, suv.

Confirming from my testing that the problem is specific to the Quartz backend in current stable version 3.16.6 and that the problem has, indeed, been fixed in git master and the current unstable gtk3 release version 3.17.7. The fix has not been backported to the 3.16 stable branch, however, and may not be before the 3.18 stable release since that is only about a month away at this point.

I also note that when using 3.16.6, the problem seems to occur only on the initial opening of a given pull-down menu. If the menu is closed and then reopened the menu displays correctly until the app is closed and reopened. Just sliding the cursor along the menu bar with a menu open will demonstrate this.

Will update as soon as a better stable release is available upstream.

comment:8 Changed 9 years ago by dbevans (David B. Evans)

Port: gtk3 added

comment:9 Changed 8 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

This Quartz backend issue does, indeed, seem to be fixed in the gtk3 3.18 series. Tested with latest version of gnumeric, gedit, evince built with gtk3 3.18.5.

Last edited 8 years ago by dbevans (David B. Evans) (previous) (diff)
Note: See TracTickets for help on using tickets.