summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bufferoutputstream: be defensive about dereferencing nul bytegtksourceview-5-6Christian Hergert2023-04-271-1/+2
| | | | | | | | If we don't own the buffer, then we don't have a guarantee that the buffer is one byte bigger than any count/length we've received. Mke sure to only dereference that byte when we do. Related #309
* build: post-release version bumpChristian Hergert2023-01-101-1/+1
|
* Release GtkSourceView 5.6.25.6.2Christian Hergert2023-01-101-0/+28
|
* .gitlab-ci.yml: update build script for new imagesChristian Hergert2023-01-101-2/+2
|
* Add styling for 'def:note' to Adwaita and Adwaita-darkstuarthayhurst2023-01-102-0/+2
|
* docs: add note about library initializationChristian Hergert2023-01-101-0/+8
|
* Adwaita.xml: soften search highlightChristian Hergert2023-01-101-1/+1
| | | | | When combined with unfocused text selection background, it at least gives you some ability to determine the difference between them.
* Adwaita.xml: add def:statementChristian Hergert2023-01-102-2/+2
| | | | | And use that instead of def:keyword which will map to that anyway. This ensures that things like sizeof are highlighted in C.
* Adwaita-dark.xml: soften match color a bitChristian Hergert2023-01-101-1/+1
| | | | | We can also use the alpha in g-t-e to apply more vibrant colors to the current match selection.
* kate: use italic for def:emphasisChristian Hergert2023-01-102-4/+4
| | | | | | | This makes the scheme match closer to the other style schemes which are somewhat relied upon for rather important languages like Markdown. Related GNOME/gnome-text-editor#506
* completionprovider: fix documentation for get_priority()Christian Hergert2023-01-101-1/+1
| | | | | | | This changed when porting from Builder to GtkSourceView. Update the documentation to match. Fixes #312
* Docs: Fix RegexError referenceFeRD (Frank Dana)2023-01-101-1/+1
| | | | | | | `gi-docgen` version 2022.2 throws an error on this reference, but even if it's accepted it ends up as a 404 link. Using `[error@` correctly links to https://docs.gtk.org/glib/error.RegexError.html in the generated documentation.
* snippets: fix :enable-snippets without completion providerChristian Hergert2022-12-021-2/+2
| | | | | | | | | | | | If we are expanding snippets, and there is no completion provider used to show the available snippets, commit 04683f367 broke the ability to reach the code which would try to expand. This attempts to preserve the existing behavior to make that work while also doing the intention of commit 04683f367 to hide the informative when it is no longer necessary (and only if a snippet was touched). Fixes #302
* Merge branch 'wip/chergert/revert-list-snapshot' into 'master'Christian Hergert2022-11-186-719/+29
| | | | | | | | | | | Revert completion list snapshotting See merge request GNOME/gtksourceview!298 (cherry picked from commit 23425f6a01494b8323500c7e1a53ec5c0a72d623) 4709b2a5 Revert "listsnapshot: allow mismatched hold()/release()" d7ad8535 Revert "completionlistbox: lock listmodel items during snapshot" 334139e1 Revert "listsnapshot: add snapshotting listmodel"
* Merge branch 'wip/chergert/insert-fixes' into 'master'Christian Hergert2022-11-181-9/+22
| | | | | | | | | vim: ignore gtk_text_view_im_context_filter_keypress See merge request GNOME/gtksourceview!297 (cherry picked from commit 834373dbeb604c630644ba9a44a2948020b32542) 26c2549d vim: ignore gtk_text_view_im_context_filter_keypress
* Merge branch 'eldmannen-master-patch-55402' into 'master'Christian Hergert2022-11-171-1/+1
|\ | | | | | | | | Fix typo in documentation See merge request GNOME/gtksourceview!293
| * completion: fix typo in documentationFred2022-11-171-1/+1
|/
* map: defer adjustment changes to next frameChristian Hergert2022-11-171-3/+38
| | | | | | | | This helps ensure that we are not handling changes to GtkAdjustment that happen during the LAYOUT phase of the frame clock. Instead we defer it to the next frame as it's too late to affect any sort of allocations on this frame.
* listsnapshot: allow mismatched hold()/release()Christian Hergert2022-11-161-1/+9
| | | | | We can allow supplimental release, so long as we at least get a call to release().
* Merge branch 'wip/chergert/fix-completion-snapshots'Christian Hergert2022-11-166-29/+711
|\
| * completionlistbox: lock listmodel items during snapshotwip/chergert/fix-completion-snapshotsChristian Hergert2022-11-161-29/+103
| | | | | | | | | | | | | | | | This avoids the GtkSourceCompletionContext (a GListModel) changes that could come in during the snapshot cycle from messing with the rows that we want to see snapshotted. Related https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1840
| * listsnapshot: add snapshotting listmodelChristian Hergert2022-11-165-0/+608
|/ | | | | | | This is a simple GListModel that attempts to snapshot a range of items in an underlying GListModel between calls to hold(pos,len) and release(). The goal here is to have list stability during a frame clock cycle regardless of what the underlying model is doing.
* Merge branch 'llvm-sge' into 'master'Christian Hergert2022-11-071-0/+1
|\ | | | | | | | | llvm.lang: Add missing 'sge' keyword See merge request GNOME/gtksourceview!294
| * llvm.lang: Add missing 'sge' keywordVladimir Vuksanovic2022-11-071-0/+1
|/ | | | | | This adds the missing 'sge' (signed greater or equal) argument for the icmp instruction. https://llvm.org/docs/LangRef.html#icmp-instruction
* completion: add note about what when is_trigger can activateChristian Hergert2022-10-311-2/+6
| | | | Fixes #301
* glsl.lang: set no-spell-check on default contextChristian Hergert2022-10-051-1/+1
|
* vim: implement rudimentary search through previous commandsChristian Hergert2022-10-051-12/+45
| | | | | This allows using arrow keys to find other commands in the history which match the currently typed prefix.
* testsuite/regex: fix coding styleChristian Hergert2022-09-291-180/+180
| | | | This wasn't translated to GtkSourceView style when imported.
* testsuite/regex: walk subject as utf8 unless G_REGEX_RAWChristian Hergert2022-09-291-8/+26
| | | | | | This makes sure that we walk strings which are expected as UTF-8 by characters so we don't split the multi-byte character. However, if G_REGEX_RAW is set, walk by byte.
* testsuite: use G_REGEX_RAW with invalid UTF-8Moody2022-09-291-1/+2
|
* regex: Fix incorrect bitflag operationsMoody2022-09-291-1/+7
|
* Post-release version bumpChristian Hergert2022-09-221-1/+1
|
* Release GtkSourceView 5.6.15.6.1Christian Hergert2022-09-221-0/+18
|
* vim: allow applications to handle gd/gDChristian Hergert2022-09-211-0/+14
|
* hover: disable context menus from hover assistantChristian Hergert2022-09-211-0/+42
| | | | | | | | | | This is a workaround until we can be sure that we can show popovers from the hover assistants. Currently, that can break input pretty badly, so this is in place to help avoid that issue by users. This basically makes it so GtkLabel (and potentially others) cannot get their sequence event to show the context menu since we don't have other mechanisms to prevent it.
* hover: don't dismiss hover request from click movementChristian Hergert2022-09-211-1/+47
| | | | | | If we click, and that causes the insertion mark to move, we don't want to cancel our request to potentially show hover information at that position or the user would have to wiggle to get it to show up.
* assistants: refuse to show assistants unless parent is mappedChristian Hergert2022-09-213-4/+13
| | | | | | If our parent widget (the source view) is not mapped, then we really don't want to be showing any additional assistants as they'd be displayed over the wrong widget (likely in a GtkStack or GtkNotebok, etc).
* view: hide all assistants when unmappingChristian Hergert2022-09-211-0/+12
| | | | | | If you switch views in a stack for exmple, we expect to get child-visible set to false, which then causes the view to unmap. Use that to ensure all our assistants are dismissed.
* completion: fix activation with empty bounds from triggerChristian Hergert2022-09-211-11/+19
| | | | | | | | | This can easily happen if you have an operator that caused the completion like "." as the symbol chars will break at the "." and leave us with bounds that are identical. If we track that the interactive completion came from a trigger, we can ignore this and assume we want to begin completion immediately.
* Merge branch 'pile.trade-master-patch-55984' into 'master'Christian Hergert2022-09-191-0/+2
|\ | | | | | | | | go.lang: add Go 1.18 comparable and any keywords See merge request GNOME/gtksourceview!288
| * go.lang: add Go 1.18 comparable and any keywordsPile Trade2022-09-191-0/+2
|/
* Update Nepali translationPawan Chitrakar2022-09-191-100/+179
|
* Update Turkish translationSabri Ünal2022-09-181-2314/+10
|
* Post-release version bumpChristian Hergert2022-09-171-1/+1
|
* Release GtkSourceView 5.6.05.6.0Christian Hergert2022-09-172-1/+45
|
* testsuite: disable test-snippets for installed testsChristian Hergert2022-09-151-1/+1
| | | | | | | This requires on state within the testsuite directory, and therefore cannot be used for system installed tests. Fixes #291
* completioncell: fix splicing of PangoAttrListsChristian Hergert2022-09-141-1/+6
| | | | | We need to provide the length or we wont properly join the strings in all cases here.
* completion: use PANGO_UNDERLINE_SINGLE_LINEChristian Hergert2022-09-141-1/+1
| | | | | This just looks a bit better since we want to match under the whole line not just where underbar might be.
* cobalt.xml: modernize error/warning/noteChristian Hergert2022-09-131-3/+3
| | | | | These can use error underlines instead of the blocky forms that are there already as we've done in other schemes.
* Merge branch 'pcre2' into 'master'Christian Hergert2022-09-101-8/+13
|\ | | | | | | | | meson: Update pcre2 wrap See merge request GNOME/gtksourceview!286