Closed
Bug 461657
Opened 16 years ago
Closed 16 years ago
Handling of GNOME background colour is broken and breaks "Set as desktop background"
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 421977
People
(Reporter: glandium, Unassigned)
Details
Attachments
(1 obsolete file)
There are 2 things that fail with the handling of GNOME background colour:
- the GNOME shell service doesn't handle 48bits values that can be set in the /desktop/gnome/background/primary_color gconf key (which are valid and properly supported by Gtk+). In this case, the "Set as desktop background" functionality is broken by the exception that is returned by the GNOME shell service:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIShellService.desktopBackgroundColor]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://browser/content/setDesktopBackground.js :: anonymous :: line 56"
data: no]
- When the gconf key is 24 or 12 bits, the values GetDesktopBackgroundColor() returns are broken, and the background color displayed in the "Set as desktop background" dialog is (almost) black. The problem is it only keeps the 4 last bits for each R,G,B value.
The attached patch fixes all this
Attachment #344763 -
Flags: review?(gavin.sharp)
Comment 1•16 years ago
|
||
Wasn't this fixed by bug 421977? The code you're patching doesn't exist in Hg.
Reporter | ||
Comment 2•16 years ago
|
||
You're right. The patch was against 3.0.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Updated•16 years ago
|
Attachment #344763 -
Attachment is obsolete: true
Attachment #344763 -
Flags: review?(gavin.sharp)
You need to log in
before you can comment on or make changes to this bug.
Description
•