Author: dpsimons
Date: Mon Apr 20 22:56:05 2015
New Revision: 38460

URL: http://svn.gna.org/viewcvs/gnustep?rev=38460&view=rev
Log:
fix NSPopUpButtonCell to ignore the altersStateOfSelectedItem setting as in 
Cocoa

Modified:
    libs/gui/branches/gnustep_testplant_branch/ChangeLog
    libs/gui/branches/gnustep_testplant_branch/Source/NSPopUpButtonCell.m

Modified: libs/gui/branches/gnustep_testplant_branch/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/ChangeLog?rev=38460&r1=38459&r2=38460&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/ChangeLog        (original)
+++ libs/gui/branches/gnustep_testplant_branch/ChangeLog        Mon Apr 20 
22:56:05 2015
@@ -1,3 +1,8 @@
+2015-04-20  Doug Simons <[email protected]>
+
+       * Source/NSPopUpButtonCell.m: Ignore altersStateOfSelectedItem for
+       pullDown buttons as in Cocoa.
+       
 2015-04-17  Doug Simons <[email protected]>
 
        * Source/NSView.m: Fix broken invalidRect mechanism so, for

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSPopUpButtonCell.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSPopUpButtonCell.m?rev=38460&r1=38459&r2=38460&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSPopUpButtonCell.m       
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSPopUpButtonCell.m       
Mon Apr 20 22:56:05 2015
@@ -667,7 +667,7 @@
 
   if (_selectedItem != nil)
     {
-      if (_pbcFlags.altersStateOfSelectedItem)
+      if (_pbcFlags.altersStateOfSelectedItem && !_pbcFlags.pullsDown)
         {
           [_selectedItem setState: NSOffState];
         }
@@ -684,7 +684,7 @@
 
   if (_selectedItem != nil)
     {
-      if (_pbcFlags.altersStateOfSelectedItem)
+      if (_pbcFlags.altersStateOfSelectedItem && !_pbcFlags.pullsDown)
         {
           [_selectedItem setState: NSOnState];
         }


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to