aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
AgeCommit message (Collapse)AuthorFilesLines
2023-10-10Share definition of colour used for IME indicators on most platforms.Neil1-4/+5
2023-08-28Bug [#2401]. gtk: Set type hint for GTK_WINDOW_POPUP windowsJiří Techet1-0/+2
Without setting the hint the popup windows lead to some obscure behavior on macOS when the main window is full screened, see https://gitlab.gnome.org/GNOME/gtk/-/issues/5716 https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5778 while the solution from 5778 might be a sufficient workaround, setting the hints might be a good idea in general so the window manager knows better the purpose of these windows.
2023-06-28Add const where viable.Neil1-1/+1
2023-06-25Strip line end white-space.Neil1-1/+1
2023-02-28Cache client rectangle when view resized. That makes it safer to access fromNeil Hodgson1-1/+7
secondary threads.
2023-01-27Feature [feature-requests:#1476] Add support for surrounding text in GTK ↵Colomban Wendling1-0/+63
input methods Add support for retrieving and deleting surrounding text from input methods on GTK.
2023-01-17Bug [#2375]. On Win32, fix scrolling speed to not be too fast.Enrico Tröger1-1/+1
2022-10-04Bug [#2349]. Fix bug where there were too many or too few lines when wrapping.Neil Hodgson1-0/+6
2022-07-04Avoid C-style cast and range reduction warnings from cppcheck 2.8.Neil Hodgson1-3/+3
2022-04-08Feature [feature-requests:#1389] Initialize CaseFolderTable to ASCII soNeil1-2/+0
subclasses do not need to call StandardASCII. Avoid some lint warnings.
2022-04-07Bug [#2322] Fix partial updates and non-responsive scroll bars on Xorg.Neil Hodgson1-0/+27
Also fixes bugs [#2196] and [#2312].
2022-03-23On GTK, scroll horizontally with shift + scroll wheel.Mitchell Foral1-7/+4
2022-02-16Fix re-entrant painting to maintain update region.Mitchell Foral1-5/+5
2022-02-10Replace "OS X' with "macOS".Neil1-1/+1
2022-01-31Place CaseFolderDBCS in unnamed namespace to avoid one definition rule warningsNeil Hodgson1-0/+4
(ctuOneDefinitionRuleViolation) from Cppcheck.
2022-01-31Implement more unique_ptr allocation wrappers and place in new Wrappers.h ↵Neil Hodgson1-94/+54
header.
2021-10-24Bug [#2287] Fix primary selection paste within same instance.Neil Hodgson1-3/+8
2021-10-12Minor code simplifications from clang-tidy.Neil1-4/+4
2021-10-09Fix warning from Cppcheck2.6.Neil1-3/+1
2021-10-02Do not unref the global settings object as gtk_settings_get_default does notMitchell Foral1-3/+0
transfer ownership.
2021-09-28Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow stylesNeil1-0/+1
larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that.
2021-09-19Respond to changes in system font scaling by clearing any cached layout data.Neil Hodgson1-0/+13
2021-09-13Hold onto global GtkSettings object as used multiple times.Neil Hodgson1-12/+24
2021-06-17Implement GetDirectStatusFunction on GTK.Neil1-0/+3
2021-06-17Add SciFnDirectStatus, a direct access function which also returns status so canNeil1-1/+10
improve performance for client code that called SCI_GETSTATUS after every API to check for failure.
2021-05-25Use correct enumeration.Neil Hodgson1-1/+1
2021-05-25Place functions in correct internal namespace.Neil Hodgson1-1/+2
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-84/+89
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-4/+4
will be published in externally visible header.
2021-04-28Bug [#2227]. On GTK 3 with Wayland, fix primary selection.Neil Hodgson1-45/+57
2021-04-27Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterTypeNeil1-1/+1
and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-4/+4
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-15Add default case to IME checking of underline type to prevent warnings.Neil Hodgson1-0/+1
2021-04-15Add casts to prevent warnings from MSVC.Neil1-21/+23
2021-04-15Avoid warning from MSVC.Neil1-1/+3
2021-04-15Widen some position and length values to match core APIs.Neil1-4/+4
2021-04-15Avoid crash on Win32 as it doesn't support font options.Mitchell Foral1-4/+6
2021-04-06Minor fixes - noexcept, unnamed namespace, initialisation, casting.Neil1-61/+81
Leaves GTK object definition as is since this is essentially C code with documentation and examples in C.
2021-04-06Explicit wide call to prevent fail if built in different Unicode mode on Win32.Neil1-1/+1
2021-04-05Change CaseConversion to an enum class.Neil1-1/+1
2021-04-05Detect (some) changes to font options and clear position caches when changed.Neil1-0/+33
To experiment, use the Fonts panel of the Tweaks application.
2021-03-29Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.Neil1-0/+1
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
2021-03-22Replace multiple mode setting calls on Surface with SetMode as this isNeil1-4/+2
extensible. For CallTip, GTK and Qt hardcode BidiR2L to false as they don't support bidirectional, its the same as current, and the BidiR2L state on EditModel isn't easily accessible.
2021-03-20Use Surface::AllocatePixMap instead of changing an existing surface withNeil1-1/+1
InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small.
2021-03-19Switch enum to enum class.Neil1-30/+32
2020-06-24Converting between UTF-8 and current encoding.Neil1-0/+18
Allows platform-independent code to be written just to handle Unicode.
2021-03-18Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.Neil1-4/+4
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Window::Cursor to an enum class.Neil1-3/+3