← Back to team overview

gma500 team mailing list archive

[Bug 920832] Re: Handle not rendered properly if border-width = 0

 

@Andrea,

I don't understand what you meant by "you can simply can add a special
style class if needed."

I have attached a standalone testcase which demonstrates the bug. The
testcase is a toplevel window which contains a single widget -- a
subclassed EventBox that renders a handle centered within the window.
Please note that the only drawing in this testcase -- including the
background -- is done by GtkRenderHandle *which is rendered by the unico
engine*.

The testcase styles the widget with a css fragment defined in main() as
faux_theme.

Feel free to "add a special style class" to the faux_theme definition so
that the testcase output matches the reference image which I will also
attach.

** Attachment added: "main.c"
   https://bugs.launchpad.net/ubuntu/+source/gtk3-engines-unico/+bug/920832/+attachment/2832301/+files/main.c

-- 
You received this bug notification because you are a member of GMA500
Team, which is subscribed to Unico.
https://bugs.launchpad.net/bugs/920832

Title:
  Handle not rendered properly if border-width = 0

Status in Light Themes:
  Invalid
Status in The Unico Gtk+ Theming Engine:
  Confirmed
Status in “gtk3-engines-unico” package in Ubuntu:
  New

Bug description:
  When rendering handles (unico-draw.c: unico-draw-handle), if the
  current style context has border-width = 0, the handle is not rendered
  properly. This happens because the line-width is style-matched to
  "border-width" in unico_get_line_width(), which in turn, means that
  some of the lines are not stroked and the geometry calculations are
  off.

  When rendering handles, often the border-width will be set to 0 so
  that the entire background will be wiped to the correct pattern
  (without leaving a border artifact - this happens on oneiric with
  gnome-panel and the Radiance theme).  The same problem exists when
  rendering separators as well.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: gtk3-engines-unico 1.0.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-15.25-generic 3.0.13
  Uname: Linux 3.0.0-15-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Tue Jan 24 00:03:26 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: gtk3-engines-unico
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/920832/+subscriptions