OSDN Git Service

MacGui: Fix picture settings panel so that it stays on top when open like a true...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 5 Mar 2009 23:07:19 +0000 (23:07 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 5 Mar 2009 23:07:19 +0000 (23:07 +0000)
- Add "Hide On Deactivate" property to the xib so that if another app is in focus the panel properly hides.

git-svn-id: svn://localhost/HandBrake/trunk@2228 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/English.lproj/PictureSettings.xib
macosx/PictureController.mm

index fe8dcec..90a8a15 100644 (file)
@@ -8,7 +8,7 @@
                <string key="IBDocument.HIToolboxVersion">353.00</string>
                <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
                        <bool key="EncodedWithXMLCoder">YES</bool>
-                       <integer value="6"/>
+                       <integer value="5"/>
                </object>
                <object class="NSArray" key="IBDocument.PluginDependencies">
                        <bool key="EncodedWithXMLCoder">YES</bool>
@@ -38,7 +38,7 @@
                                <int key="NSWindowStyleMask">8215</int>
                                <int key="NSWindowBacking">2</int>
                                <string key="NSWindowRect">{{1211, 290}, {311, 447}}</string>
-                               <int key="NSWTFlags">1886913536</int>
+                               <int key="NSWTFlags">-260570112</int>
                                <string key="NSWindowTitle">Picture Settings</string>
                                <string key="NSWindowClass">NSPanel</string>
                                <object class="NSMutableString" key="NSViewClass">
index 702816c..3c07819 100644 (file)
 
 - (void) setToWindowedMode
 {
-    /* Set the window back to regular level */
-    [[self window] setLevel:NSNormalWindowLevel];
+    /* Set the window back to Floating Window mode 
+     * This will put the window always on top, but
+     * since we have Hide on Deactivate set in our
+     * xib, if other apps are put in focus we will
+     * hide properly to stay out of the way
+     */
+    [[self window] setLevel:NSFloatingWindowLevel];
 }
 
 - (void)setHBController: (HBController *)controller