修改上面补丁取控件画图区大小的bug
这个bug导致窗口重画时,图标变形的问题。
[code:1]
--- gnome-panel-2.14.2-toggle-system-tray.patch.old 2006-08-22 21:51:31.000000000 +0800
+++ gnome-panel-2.14.2-toggle-system-tray.patch 2006-08-22 21:54:32.000000000 +0800
@@ -427,10 +427,10 @@
+
+ gdk_color_parse("#4d86c9", &color);
+
-+ x = area->x;
-+ y = area->y;
-+ width = area->width;
-+ height = area->height;
++ x = widget->allocation.x;
++ y = widget->allocation.y;
++ width = widget->allocation.width;
++ height = widget->allocation.height;
+
+ radius = (MIN(width, height) - 2) / 2;
+ x += width - (width - radius * 2) / 2;
[/code:1]