option to prevent animaged images from repeating (bug 162395)

This commit is contained in:
pinkerton%aol.net 2005-08-07 21:40:27 +00:00
Родитель da41e12e42
Коммит 29fb58096c
5 изменённых файлов: 20 добавлений и 3 удалений

Просмотреть файл

@ -22,6 +22,7 @@
clickEnableJS = id;
clickEnableJava = id;
clickEnablePopupBlocking = id;
clickPreventAnimation = id;
editWhitelist = id;
editWhitelistDone = id;
removeWhitelistSite = id;
@ -38,6 +39,7 @@
mEnableJava = NSButton;
mEnablePopupBlocking = NSButton;
mImageResize = NSButton;
mPreventAnimation = NSButton;
mWhitelistPanel = id;
mWhitelistTable = ExtendedTableView;
};

Просмотреть файл

@ -3,12 +3,12 @@
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>75 62 356 240 0 0 1600 1002 </string>
<string>56 93 356 240 0 0 1280 832 </string>
<key>IBFramework Version</key>
<string>364.0</string>
<string>437.0</string>
<key>IBOldestOS</key>
<integer>2</integer>
<key>IBSystem Version</key>
<string>7W98</string>
<string>8C46</string>
</dict>
</plist>

Двоичные данные
camino/PreferencePanes/WebFeatures/English.lproj/WebFeatures.nib/keyedobjects.nib сгенерированный

Двоичный файл не отображается.

Просмотреть файл

@ -55,6 +55,7 @@ class nsISupportsArray;
IBOutlet NSButton *mEnablePopupBlocking;
IBOutlet NSButton *mEnableAdBlocking;
IBOutlet NSButton *mImageResize;
IBOutlet NSButton *mPreventAnimation;
IBOutlet NSButton *mEditWhitelist;
IBOutlet id mWhitelistPanel;
@ -74,6 +75,7 @@ class nsISupportsArray;
-(IBAction) clickEnablePopupBlocking:(id)sender;
-(IBAction) clickEnableAdBlocking:(id)sender;
-(IBAction) clickEnableImageResizing:(id)sender;
-(IBAction) clickPreventAnimation:(id)sender;
-(IBAction) editWhitelist:(id)sender;
-(IBAction) clickEnableAnnoyanceBlocker:(id)sender;

Просмотреть файл

@ -113,6 +113,9 @@ static NSString* XPCOMShutDownNotificationName = @"XPCOMShutDown";
BOOL enableImageResize = [self getBooleanPref:"browser.enable_automatic_image_resizing" withSuccess:&gotPref];
[mImageResize setState:enableImageResize];
BOOL preventAnimation = [[self getStringPref:"image.animation_mode" withSuccess:&gotPref] isEqualToString:@"once"];
[mPreventAnimation setState:preventAnimation];
// check if userContent.css is in the profile. Yes, this will give false positives if the
// user has made their own, but that's their problem.
NSString* adBlockFile = [[[self profilePath] stringByAppendingPathComponent:@"chrome"]
@ -192,6 +195,16 @@ static NSString* XPCOMShutDownNotificationName = @"XPCOMShutDown";
[self setPref:"browser.enable_automatic_image_resizing" toBoolean:[sender state] ? YES : NO];
}
//
// -clickPreventAnimation:
//
// Enable and disable mozilla's limiting of how animated images repeat
//
-(IBAction) clickPreventAnimation:(id)sender
{
[self setPref:"image.animation_mode" toString:([sender state] ? @"once" : @"normal")];
}
//
// populatePermissionCache:
//