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)

3.0 Branch
All
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 421977

People

(Reporter: glandium, Unassigned)

Details

Attachments

(1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
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)
Wasn't this fixed by bug 421977? The code you're patching doesn't exist in Hg.
You're right. The patch was against 3.0.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
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.

Attachment

General

Created:
Updated:
Size: