aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
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: 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-04-11Backport: Bug [#2087]. Fix flickering when inserting primary selection on ↵Neil1-13/+29
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-05Backport: Bug [#2094]. gtk: Accessible: use the built-in character position ↵Colomban Wendling1-1/+1
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-03-29Backport: Include "CharacterCategory.h" in all files that include ↵Neil1-0/+1
"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".Neil1-5/+3
Backport of changeset 7346:5e3a239e7484.
2019-03-28Backport: Bug [#2087]. Fix flicker when inserting primary selection on GTK.Neil1-28/+40
Backport of changeset 7345:a3dcfd0b7083.
2019-03-27Backport: Ran astyle to standardize formatting.Neil1-212/+214
Backport of changeset 7342:7ce2da0f95ef.
2019-03-27Backport: Fix problem with MinGW which defines NOMINMAX itself.Neil1-0/+1
Backport of changeset 7341:dcdb1db960e3.
2019-03-27Backport: Use const where reasonable. Some additional type safety.Neil1-51/+51
Backport of changeset 7340:9b570ca5091d.
2019-03-27Backport: Standardize extracting point from mouse event, more noexcept, ↵Neil1-26/+33
anonymous namespace and type safety. Backport of changeset 7339:26bd40db4f24.
2019-03-27Backport: Replace NULL/0 with nullptr. Mark noexcept where simple.Neil1-63/+64
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 ↵Neil1-1/+3
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-31Backport: Use generic versions of ceil, floor, round, lround, trunc from ↵mitchell1-4/+4
<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.
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-14Backport: Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-2/+1
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 Hodgson1-23/+24
Backport of changeset 6782:8b447827f7a6.
2018-05-01Backport: Bug [#2012]. Use '0' instead of '0l'.Neil1-1/+1
Backport of changeset 6768:afe3117ead02.
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.Neil1-4/+4
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-05-05Backport: Feature [feature-requests:#1212]. Move Unicode conversions into ↵mitchell1-1/+0
UniConversion. Move Unicode conversion functions UnicodeFromUTF8 and UTF8FromUTF32Character into UniConversion. Backport of changeset 6645:463fa6965d9a.
2018-03-21Backport: Fix some runtime warnings caused by previous change as wSelectionNeil Hodgson1-4/+4
created later and clients (such as SciTE's about box) may use API to set up text before window is realized. Backport of changeset 6637:f5bc6b39f3fa.
2018-03-21Backport: Fix warnings about NULL selection widget by moving creation and ↵Mitchell Foral1-4/+2
destruction of wSelection into the realize and unrealize handlers. Backport of changeset 6636:faac617dc312.
2018-03-16Backport: Remove line-end white space.Neil1-1/+1
Backport of changeset 6625:2dd6b8049c4e.
2018-03-15Backport: Use forward class definitions of XPM and RGBAImage so only code ↵Neil1-1/+0
that uses them needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage. Backport of changeset 6624:32adac0930bb.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-6/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-08-28Backport: New header ILoader.h defines ILoader interface as it does not ↵Neil1-0/+1
belong in ILexer.h. Backport of changeset 6383:9c8257ff60b7.
2017-08-02Backport: Switch default modifier key for rectangular selections from Ctrl ↵Neil Hodgson1-4/+0
to Alt on Linux. Backport of changeset 6364:ea9f62ea6153.
2017-07-29Backport: Bug [#1876]. Fix scrollbar and corner drawing and flickering of text.Neil Hodgson1-6/+33
Backport of changeset 6362:383b9c10d569.
2017-07-07Backport: Bug [#1949]. Fix drawing failure in wrap mode for GTK+ 2.x.Neil1-1/+2
Backport of changeset 6338:ebec660dcf48.
2017-06-12Backport: Remove old timer code in favour of the FineTicker* methods.Neil1-7/+0
Backport of changeset 6311:3a180dc6e9c8.
2017-06-12Backport: Simplify mouse and keyboard handling by only retaining the ↵Neil1-5/+10
'WithModifiers" form. All events include a set of keyboard modifier flags. Older calls that passed individual parameters for each key were removed. Backport of changeset 6310:af83baede430.
2017-06-10Backport: Require GTK+ 2.24 or later. Removes support for earlier versions.Baldur Karlsson1-30/+0
Backport of changeset 6301:90741c1cb988.
2017-06-09Backport: Use min and max from std instead of own version from platform.Neil1-4/+4
Backport of changeset 6297:4bf96081f6e6.
2017-05-21Make SparseVector work with move-only types.Neil1-0/+1
Define UniqueString as a move-only string and use in a SparseVector for ContractionState. Remove SparseVector method specializations that are no longer needed.
2017-05-07Use unique_ptr on GTK+.Neil1-11/+6
2017-05-02For GTK+, use unique_ptr for drawing surfaces and don't check for allocationNeil1-36/+24
failure as that throws an exception.
2017-04-15Avoid calling virtual functions in constructors and destructors.Neil1-4/+3
2017-04-15Fix deprecation of gdk_window_process_updates in GTK+ 3.22 by redrawing insteadNeil1-4/+6
of scrolling.
2017-04-01Standardize on C++ headers, remove headers that aren't needed and add <cstddef>Neil1-7/+8
where it may be needed in the future.
2017-03-31Hide decorations details a little.Neil1-1/+1
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-8/+8
and lines.