aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2019-07-11Backport: Bug [#2038]. Source of input reported in SCN_CHARADDED.mitchell1-5/+2
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT. Backport of changeset 7613:4cfac35c71bd.
2019-06-29Backport: Bug [#2111]. Retracted change to IME on GTK.Neil1-7/+0
Backed out changeset: 512ec9ab2e7c Backport of changeset 7611:8c487135a6e4.
2019-06-22Backport: Bug [#2111]. Reset IME when mouse is clicked on GTK.Hodong Kim1-0/+7
Backport of changeset 7599:512ec9ab2e7c.
2019-06-22Backport: Remove CHECK_DEPRECATED option as deprecations always checked.Neil Hodgson1-4/+1
Backport of changeset 7597:f2298aa753d1.
2019-06-22Backport: Feature [feature-requests:#1297] Update to use INDICATOR_ instead ↵Neil1-5/+5
of INDIC_ as INDIC_ is also used for indicator styles. Backport of changeset 7594:190079cd334f.
2019-07-11Backport: Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.mitchell1-3/+3
Backport of changeset 7575:e1e9f53b0423.
2019-07-11Backport: Feature [feature-requests:#1295]. Lexer added for DataFlex.mitchell1-0/+12
Backport of changeset 7569:ab69548334b7, but with custom `_strnlen` function since `strnlen` is not part of the C or C++ standard.
2019-05-27Backport: Feature [feature-requests:#1280]. Lexer added for X12.mitchell1-0/+8
Backport of changeset 7486:a99fa007805f, but with LexerX12::Terminator struct definition not having default values, which is a C++14 feature.
2019-04-27Fixed bad backport involving std::round and std::lround for older Mac OSX SDKs.mitchell1-2/+2
This reverts parts of changeset 7371:886ffb3884fe.
2019-04-11Backport: Bug [#2087]. Fix flickering when inserting primary selection on ↵Neil2-14/+32
GTK between SciTE tabs. This does not allow primary selection to work between tabs as the tabs are sharing a single Scintilla and the old primary selection is unclaimed when the file is changed. This fix adds a new ReceivedClipboard method which does not try to convert the selection if received in a different format than asked for. It was the call to gtk_selection_convert that seemed to cause the flickering. ReceivedClipboard is only called from SelectionReceiver::ClipboardReceived so only occurs due to a call to RequestSelection and can not occur because of a selection_received signal. ReceivedSelection is left with its complexity in case it is needed for some other issue although it doesn't appear to be called for drag&drop, for example. Backport of changeset 7422:22864dcaca0b.
2019-04-11Backport: Bug [#2094]. Avoid exceptions by treating text as one-byte per ↵Neil1-0/+6
character in accessibility if UTF32 index not available. Backport of changeset 7421:2c8b52af4ae5.
2019-04-05Backport: Bug [#2095]. gtk: Accessible: emit the text deletion signal before ↵Colomban Wendling2-9/+3
deletion This allows the accessibility layer to request detail, such as which characters have been deleted. ATK will query the deleted range to report the data that was removed, so it must still be available for the query to give a correct answer. So, emit the signal in BEFOREDELETE instead of DELETETEXT. Backport of changeset 7406:0a937b4c0b2b.
2019-04-05Backport: Bug [#2094]. gtk: Accessible: use the built-in character position ↵Colomban Wendling3-25/+19
cache It's quite a lot faster even after trying and optimizing the custom version, and it makes the code simpler. Also improve ByteOffsetFromCharacterOffset() to make use of the cache, making it drastically faster. Backport of changeset 7405:01aab5f24e50.
2019-04-06Backport: Updated dependencies for change set 7401 adding UniqueString.cxx.Neil1-0/+3
Backport of changeset 7404:04d3bf0afce8.
2019-04-17Backport: Move UniqueStringCopy into its own source file UniqueString.cxx to ↵mitchell1-1/+1
hide the implementation. Backport of changeset 7402:751b76b567f9, but with an alternative to C++17's string_view.
2019-04-01Backport: Switch generation of make dependencies to Python scripts DepGen.py.Neil3-760/+1957
Dependencies files deps.mak and nmdeps.mak are formatted with one file per line as that makes it easier to examine differences between versions. Backport of changeset 7397:997e6203e270.
2019-03-29Backport: Include "CharacterCategory.h" in all files that include ↵Neil2-0/+2
"Document.h" as it will be needed for adding a CharacterCategory feature. Backport of changeset 7391:9d98d77e920f.
2019-03-28Backport: Use standard GDK_SELECTION_CLIPBOARD instead of interning "CLIPBOARD".Neil2-6/+3
Backport of changeset 7346:5e3a239e7484.
2019-03-28Backport: Bug [#2087]. Fix flicker when inserting primary selection on GTK.Neil2-28/+44
Backport of changeset 7345:a3dcfd0b7083.
2019-03-27Backport: Updated dependencies.Neil1-45/+68
Backport of changeset 7344:e7dc1e59619e.
2019-03-27Backport: Ran astyle to standardize formatting.Neil4-254/+256
Backport of changeset 7342:7ce2da0f95ef.
2019-03-27Backport: Fix problem with MinGW which defines NOMINMAX itself.Neil2-0/+2
Backport of changeset 7341:dcdb1db960e3.
2019-03-27Backport: Use const where reasonable. Some additional type safety.Neil2-123/+128
Backport of changeset 7340:9b570ca5091d.
2019-03-27Backport: Standardize extracting point from mouse event, more noexcept, ↵Neil2-27/+34
anonymous namespace and type safety. Backport of changeset 7339:26bd40db4f24.
2019-03-27Backport: Replace NULL/0 with nullptr. Mark noexcept where simple.Neil5-218/+224
Move some static functions into anonymous namespace. Backport of changeset 7338:1238cda7364d.
2019-03-27Backport: Initialize all the fields of ScintillaGTK.Neil1-2/+6
Backport of changeset 7336:d3175dc7f56e.
2019-03-27Backport: Add <algorithm> for std::min/max. Standardize on _WIN32 to gate ↵Neil3-2/+7
Win32 features. Protect from windows.h definition of min/max. Backport of changeset 7335:a10ed6f873e6.
2019-03-26Backport: Make PWidget noexcept and take const argument so it can be used in ↵Neil1-1/+1
more contexts. Backport of changeset 7334:b0c7be8925c3.
2019-03-25Backport: Use generic std::abs instead of abs and fabs.Neil1-3/+3
Backport of changeset 7330:09e5fe965a79.
2019-03-31Backport: Use generic versions of ceil, floor, round, lround, trunc from ↵mitchell2-6/+6
<cmath>. Backport of changeset 7329:2662ef098d93, but without std::round and std::lround, since older Mac OSX SDKs may not have them.
2019-01-13Backport: Replace the only use of a function from <cctype> with a Scintilla ↵Neil1-1/+0
function. Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments. Backport of changeset 7228:348e55f8107c.
2019-01-07Backport: Stop variable shadowing. This makes the code easier to understand ↵Neil1-1/+1
and improves performance very slightly. Backport of changeset 7196:094210c79fd4.
2018-10-11Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-3/+4
This can reduce the time taken to fold a document by half. Backport of changeset 7110:09c647755bed.
2018-05-25Backport: Add GradientRectangle method to Surface to draw rectangles with ↵mitchell1-0/+27
vertical or horizontal gradients. Backport of changeset 6965:90c71d69e3b6.
2018-05-25Backport: Modernize Platform.h (3) - update Surface to delete WidthChar, use ↵mitchell1-16/+4
size_t for Polygon and delete the standard copy and assignment methods. Backport of changeset 6940:89fd29243232.
2018-05-14Backport: Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-3/+3
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed. Backport of changeset 6939:7441dcb96e6a.
2018-05-14Backport: Modernize Platform.h (1) - noexcept, const, standard methods.Neil2-10/+9
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform. Backport of changeset 6938:a42c7cc3254b.
2018-05-02Backport: Decrease use of casts and replace reinterpret_cast with static_cast.Neil Hodgson4-26/+28
Backport of changeset 6782:8b447827f7a6.
2018-05-01Backport: Updated dependencies.Neil Hodgson1-29/+31
Backport of changeset 6775:c9895510ded6.
2018-05-01Backport: Bug [#2012]. Use '0' instead of '0l'.Neil1-1/+1
Backport of changeset 6768:afe3117ead02.
2018-04-28Backport: Delete standard functions on classes where there could be attempts ↵Neil1-0/+2
to copy. Backport of changeset 6756:29866b0927e0.
2018-04-26Backport: Update dependencies for ElapsedPeriod.Neil Hodgson1-15/+15
Backport of changeset 6743:7a9d4d15b8d3.
2018-05-06Backport: Use <chrono> for platform-independent timing and remove ↵mitchell1-22/+0
ElapsedTime. Also use #if for painting measurement as there are 7 sections of code to enable. Backport of changeset 6741:af5d9064c25c.
2018-04-25Backport: Use set of coercion functions for transforming WndProc parameters ↵Neil1-4/+4
into pointers. Backport of changeset 6738:5b39367ee7da.
2018-04-25Backport: Standardized signature of TargetAsUTF8 and EncodedFromUTF8.Neil2-6/+6
Backport of changeset 6737:5c4aea8a1e8a.
2018-04-05Backport: Backed out changeset: 7402342dc7a3 Caching client rectangle on ↵Neil1-5/+5
EditView. This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based. Backport of changeset 6673:a22abea8d41e.
2018-04-04Backport: Cache client rectangle on EditView so it can be used easily inside ↵Neil1-5/+5
EditView. Backport of changeset 6669:7402342dc7a3.
2018-03-24Backport: Removed unwanted include.Neil1-1/+1
Backport of changeset 6646:c64207e7e584.
2018-05-05Backport: Feature [feature-requests:#1212]. Move Unicode conversions into ↵mitchell3-35/+32
UniConversion. Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion. Backport of changeset 6645:463fa6965d9a.
2018-05-05Backport: Feature [feature-requests:#1211]. Use pre-computed table for ↵mitchell1-1/+1
UTF8BytesOfLead. Friendlier treatment of invalid UTF-8. Add tests for UniConversion handling invalid UTF-8. Simplify UTF8Classify tests. Backport of changeset 6643:ebbb4e5aaf93.