Bug 662324 - Add "Fill" and "Fit" position support for "Set As Desktop Background...". r=gavin

This commit is contained in:
Ian Moody
2012-02-01 11:37:55 +01:00
parent 7f4d216364
commit ea770ea377
7 changed files with 64 additions and 1 deletions

View File

@@ -427,6 +427,10 @@ nsGNOMEShellService::SetDesktopBackground(nsIDOMElement* aElement,
options.Assign("wallpaper");
else if (aPosition == BACKGROUND_STRETCH)
options.Assign("stretched");
else if (aPosition == BACKGROUND_FILL)
options.Assign("zoom");
else if (aPosition == BACKGROUND_FIT)
options.Assign("scaled");
else
options.Assign("centered");