diff options
| author | Enrico Tassi | 2015-02-17 10:12:25 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2015-02-17 10:12:34 +0100 |
| commit | 09aab35f45b4da30f2171b7477211fb88ffecd22 (patch) | |
| tree | 1064a5df2c167638e5c8de36514974d20440b779 | |
| parent | 8b55c34c46857932ea3cd8b209d0fd847ad913c7 (diff) | |
CoqIDE: read-only Qed sentence reflected in colors (Close: 4051)
| -rw-r--r-- | ide/coqide.ml | 5 | ||||
| -rw-r--r-- | ide/tags.ml | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ide/coqide.ml b/ide/coqide.ml index 5aac8f2a18..29fc27baa7 100644 --- a/ide/coqide.ml +++ b/ide/coqide.ml @@ -1333,6 +1333,11 @@ let build_ui () = (Gdk.Bitmap.create_from_data ~width:2 ~height:2 "\x01\x02")); Tags.Script.incomplete#set_property (`BACKGROUND_GDK (Tags.get_processed_color ())); + Tags.Script.read_only#set_property + (`BACKGROUND_STIPPLE + (Gdk.Bitmap.create_from_data ~width:2 ~height:2 "\x01\x02")); + Tags.Script.read_only#set_property + (`BACKGROUND_GDK (Tags.get_processed_color ())); (* Showtime ! *) w#show () diff --git a/ide/tags.ml b/ide/tags.ml index 079cf94853..d4460b0770 100644 --- a/ide/tags.ml +++ b/ide/tags.ml @@ -52,7 +52,9 @@ struct t let all = edit_zone :: all - let read_only = make_tag table ~name:"read_only" [`EDITABLE false ] + let read_only = make_tag table ~name:"read_only" [`EDITABLE false; + `BACKGROUND !processing_color; + `BACKGROUND_STIPPLE_SET true ] end module Proof = @@ -94,6 +96,7 @@ let set_processing_color clr = let s = string_of_color clr in processing_color := s; Script.incomplete#set_property (`BACKGROUND s); + Script.read_only#set_property (`BACKGROUND s); Script.to_process#set_property (`BACKGROUND s) let get_error_color () = color_of_string !error_color |
