Changeset 12812


Ignore:
Timestamp:
Sep 11, 2009, 11:58:52 AM (10 years ago)
Author:
gb
Message:

text-view-paren-hightlight-color hasn't had anything to do with the text
view's background color in a long time. Don't override the #/setBackground:
method, and set the paren highlight color when the text view's created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/cocoa-ide/cocoa-editor.lisp

    r12786 r12812  
    11181118                       1.0)))))
    11191119                                                       
    1120 ;;; Note changes to the textview's background color; record them
    1121 ;;; as the value of the "temporary" foreground color (for paren-highlighting).
    1122 (objc:defmethod (#/setBackgroundColor: :void)
    1123     ((self hemlock-textstorage-text-view) color)
    1124   #+debug (#_NSLog #@"Set background color: %@" :id color)
    1125   (let* ((old (text-view-paren-highlight-color self)))
    1126     (unless (%null-ptr-p old)
    1127       (#/release old)))
    1128   (setf (text-view-paren-highlight-color self) (paren-highlight-background-color))
    1129   (call-next-method color))
    1130 
    11311120
    11321121
     
    17981787                                                       :with-frame tv-frame
    17991788                                                       :text-container container))))
     1789                (setf (text-view-paren-highlight-color tv) (paren-highlight-background-color))
    18001790                (#/setDelegate: layout tv)
    18011791                (#/setMinSize: tv (ns:make-ns-size 0 (ns:ns-size-height contentsize)))
Note: See TracChangeset for help on using the changeset viewer.