GNOME Bugzilla – Bug 405739
sysinfo_logo_expose() mis-renders logo
Last modified: 2011-11-11 10:03:55 UTC
Please describe the problem: The logo is rendered incorrectly when the exposed area does not cover the entire area of the widget. Steps to reproduce: This bug will probably only be reproducable when the user is not using an X compositing manager. Turn off xcompmgr/compiz etc. Go to the System tab in System Monitor. Open the menus such as Monitor and Edit and notice that the logo is rendered at an incorrect offset. Actual results: Expected results: Does this happen every time? Other information: The Cairo logic in sysinfo_logo_expose() in sysinfo.cpp is flawed: cairo_translate(cr, event->area.x, event->area.y); This translates the starting point of the Cairo context to the origin of the exposure event which may be any point within the widget. Thus the entire logo is drawn starting from the point of the exposure event which is incorrect. There are many examples of rendering a widget properly using Cairo in Gnome and on the Web.
Created attachment 83955 [details] Opening a menu Confirm this bug, attaching screenshots
Created attachment 83956 [details] Bug itself
*** Bug 418007 has been marked as a duplicate of this bug. ***
I can reproduce the bug with compiz enabled as well.
I have been to confirm this bug using Ubuntu Feisty.
This bug is still present in System Monitor 2.19.5
Created attachment 92834 [details] [review] simple fix This patch seems to have fixed the problem. However I'm pretty new to GTK, so it might not be completely correct. :)
The patch works for me.
Any chance of this getting committed for 2.20?
As i never experienced the bug, let's give it a try. Thanks. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Great, thanks :)