GNOME Bugzilla – Bug 561872
Add a bg-color property to ShellTrayManager
Last modified: 2008-12-03 22:01:24 UTC
shell_tray_manager.c: Add a bg-color property and implement it by setting a 1x1 pixmap of the right color as the background. Also, make the colormap of the tray manager window match that of the socket. That should (untested) make transparency work properly if the tray icon supports it. panel.js: Set the bg-color property of the tray manager to match the panel.
Created attachment 123200 [details] [review] Add a bg-color property to ShellTrayManager
> +/* Sea Green - obnoxious to force people to set the background color */ > +static const ClutterColor default_color = { 0xbb, 0xff, 0xaa }; ha :) > + cairo_t *cr = gdk_cairo_create (pixmap); Oof. Seems like you could use gdk_pixmap_create_from_data() or something... maybe it wouldn't turn out any simpler. I haven't tried the patch to verify that it works, but I assume you were using it in the screenshots on your blog entry. (Or did you just change the panel bg color for that?) Anyway, if it works, it looks good.
Committed a while ago.