Commits on Source (79)
-
Christian Hergert authoredbe7f4088
-
Yosef Or Boczko authored30479249
-
Elias Aebi authored2ab82145
-
Christian Hergert authored
lean.lang: highlight attributes See merge request GNOME/gtksourceview!281
78181913 -
Akbarkhon Variskhanov authored
Treat a string enclosed in slashes as a regular expression. The name 'regexpr' is taken from the book. Fixes #286.
21ec7d95 -
Akbarkhon Variskhanov authored
Changes to be committed: new file: tests/syntax-highlighting/file.awk
4470d642 -
Christian Hergert authored
awk.lang: add context for /regexpr/ Closes #286 See merge request GNOME/gtksourceview!280
f31cf81b -
Akbarkhon Variskhanov authoredc395d53b
-
Christian Hergert authored
Adwaita: add style for identifiers Closes #286 See merge request GNOME/gtksourceview!282
9c8a20d2 -
Christian Hergert authored
We risk getting bounds that are out of view if we try to use various natural words which aren't necessarily going to be the same in any syntax language. This tries to be simpler and just looks for non-space characters.
c227b3f1 -
Christian Hergert authored
Be a bit more careful about clearing the hovered_at as well as ensuring that we take the visible_rect into account when clamping the location for the popover.
14a56b9c -
Christian Hergert authored
We don't use gtk_popover_popup() anywhere else, so keep symmetry by using gtk_widget_hide() too. The only value right now that I see with the popover variant is that it could end up cascading to the root which isn't something we necessarily want.
0545d09c -
Christian Hergert authored
If it is not active, then we want to be in something that is more akin to a "backdrop" state and ignore the current line highlight.
8d4b7f18 -
Christian Hergert authored
One minor value of this is that we can set the name without incurring the GMainContext/Source locks multiple times. Just set it (without those locks) after creation so long as we have a GSource pointer. Additionally, and more importantly, if we keep the GSource around, we can change the ready time on the GTimeoutSource instead of remove/add flows which are not ideal when you do as many updates as we do.
75a97f3e -
Christian Hergert authored
When using gtk_popover_set_autohide(..., TRUE), we incur device grabs implicitely by GDK via GdkPopup:autohide. Those grabs can be quite difficult to break simply using motion/crossing events. Instead, this manages a few motion controllers (including a shared motion controller on the GtkRoot) to track when pointer motion has left in such a way that we want to dismiss the popover. Fixes https://gitlab.gnome.org/GNOME/gnome-builder/-/issues/1749
a0f168f8 -
Christian Hergert authored
Avoid a race condition if we are force disposed while the action is processed. Doesn't happen in practice, but I'd prefer to be explicit here.
fc72fa35 -
Christian Hergert authored
This is just a bit too obnoxious to manage alignment around, so instead just align based on the CSS bounding box and rely on CSS for situations where people want something different.
2c5cb576 -
Christian Hergert authored
We need to increase the identifier by our own max id, not the max id of the bundle to be merged.
5a67f9bb -
Christian Hergert authored
The whole point of ensure_snippets() is that you only parse it once until that value is cleared (which currently we do not do).
630626a7 -
Christian Hergert authored
We don't need to hold onto the bundle until finalize, we already have protections in place.
157ba8b3 -
Christian Hergert authored
We could probably limit these if we wanted, but it's unlikely to be worth it compared to just memcpy() as the complexity would be greater than the memcpy costs when you have to look at every element anyway. A better long term solution would be to have a tooltips structure that we can reference (other than just the array) which we don't want to possibly mutate.
331b15aa -
Christian Hergert authored
We need to handle a few more cases to be certain that we've dismissed the informative popover, particularly so that we can stop using the GtkPopover:autohide property for it like we do for hover assistant.
04683f36 -
Christian Hergert authored
With autohide turned off, we'll be able to stop forwarding keys as the input will not be redirected to the popover.
0aa49df1 -
Christian Hergert authored
We don't need this anymore, so just disable autohide like we do in the GtkSourceHoverAssistant.
978b2dec -
Christian Hergert authored
We still need to handle some cases better, particularly with completion and ensuring hover assistants can break on scroll internally, but it's a start towards that.
4cbbbc0e -
Christian Hergert authored
We had this previously, and I thought we'd be able to drop it, but it is still needed even with autohide changes.
78a08a12 -
Christian Hergert authorede7f07e0f
-
Christian Hergert authored
Rather than use bindings for this (which won't allow us to pass along the event further) we want to both hide the assistant and pass along the event so that systems such as vim emulation/input methods can further process it.
82bf5312 -
Christian Hergert authored
This follows suit of other GtkSourceAssistant by removing the grabs that would otherwise be taken by the completion list and instead uses GtkPopover:autohide=FAlSE. This allows us a bit more flexibility in how events are routed but also ensures that input doesn't continually enter/leave the source view on every display of the list. It also simplifies the grab management for the native surfaces since they no longer need to track crossings and break grabs.
65d03870 -
Christian Hergert authored
Otherwise we risk providers potentially not filling in the data for the next rendering.
352d73cd -
Christian Hergert authored
The baseline really seems to mess things up, so instead just try to match the best we can so both single line and multi line look nice.
46257339 -
Christian Hergert authored
While very unlikely, it is possible that text changes programatically in such a way that this could be possible that we need to handle the fully different form of search text.
474c191a -
Christian Hergert authored
Instead of trying to reposition a popover synchronously from the popover's frame-clock, try to perform that work from the beginning of the view's next frame clock. That way, we are less likely to mess up any sort of allocation/state used by the view.
d9cf55f4 -
Christian Hergert authored
This tries to avoid a flapping situation with completion lists where we might get an initial notify::empty and then very shortly thereafter get a notify::empty again with a different value. When this would happen, we'd hide/show the completion assistant within the same frame cycle, yet resources would have already been discarded from the previous call to gtk_widget_hide().
30aac452 -
Christian Hergert authored02926e9e
-
Christian Hergert authored
If you have an active snippet (especially from a previous copmletion), then tabbing should move you through the snippet positions, not activate the completion you might be typing through. You can always still use enter to activate any completion in the current position.
e8ac375a -
Christian Hergert authored
We are often racing to do measurements and size allocations against round trips from the display server. Making this column able to contain an ellipsis allows the machinery to be more forgiving in case we get too small of an allocation inbetween roundtrips.
94849f96 -
Christian Hergert authoredf46be060
-
Christian Hergert authored
The hope for this originally is that we could use the result of this function to determine what level of widget invalidation we needed on the GtkSourceView to ensure we had an allocation for the next snapshot. In practice, it didn't matter because either way we need to do a full gtk_widget_queue_resize(). However, it does attempt to avoid invalidating some state in the popover so it's useful enough to keep it around so we know explicitely when we've changed things.
428c7148 -
Christian Hergert authored
Using 0 was not really useful because it meant we could never compare the rectangle with a previous value. gtk_popover_get_pointing_to() will always return 1 for a width if it was set using a zero-width rect. Using 1 means we have a stable value that can be compared across a setter and getter for the GtkPopover.
c68091e2 -
Christian Hergert authored
When we update our position from the next frame cycle, we need to also ensure that we measure/size_allocate for the updated popover. Otherwise we risk having warnings about allocations not being up to date. This fixes a bunch of flickering in the source view while using completion popovers which rapidly update.
56d831f3 -
Christian Hergert authored
We were missing the set_property/get_property handlers for :page-size.
bbab0c8c -
Christian Hergert authored
This optional vfunc can be used by consumers to get what the typed text should be for a proposal. This can be useful when creating specialized models that filter existing items such as high-priority filtering.
3a13f101 -
Christian Hergert authored
This adds a getter for API symmetry. It's useful to monitor the changes of models in conjunction with an additional signals.
1b46403a -
Christian Hergert authored
This signal is emitted when a model is changed for a particular provider.
d3480174 -
Christian Hergert authored
This API can be used to retrieve the list of providers that are found within a completion context. You might use this to make a filtered list of models and prioritize some items into a high-priority model.
71b08915 -
Christian Hergert authored
This helps to create some visual separation between proposals that come from different providers. At some point, we might also want to include the provider title (or at least provide a way to display that via a property on GtkSourceCompletion).
700ff51a -
Christian Hergert authored508ce7ed
-
Rico Tzschichholz authored
Interface method which have a default implementation can be marked virtual instead of abstract. This avoids an error for a missing implementation of an abstract method.
578cbd65 -
Christian Hergert authored
vala: Mark CompletionProposal.get_typed_text as virtual See merge request GNOME/gtksourceview!284
6d7362d0 -
Christian Hergert authored
This is useful so that we can use a particular path when running tests out of tree (which ensures we are testing changes) versus when running installed tests using the installation prefix (even if that is not in the search path).
ec688f54 -
Christian Hergert authored
That way we don't need to include paths for TOP_SRCDIR to get access to the def.lang styles.
72eba72e -
Christian Hergert authored
If we are running out of tree, we still want to use languages and RelaxNG schema from the source tree. But if we do not have access to that, we can fallback to the installation prefix (which is now handled in GtkSourceLanguageManager). Fixes #287
5a1ed614 -
Elias Aebi authored
This fixes the highlighting of boolean literals.
876ce124 -
Elias Aebi authored
Commands are not required to start at the beginning of a line.
890aed53 -
Elias Aebi authored61b90d4f
-
Elias Aebi authored0f24667e
-
Christian Hergert authored
lean.lang: various fixes and clean-ups See merge request GNOME/gtksourceview!283
e6f6f4e8 -
Christian Hergert authored
Leftover from conversion to final type.
fadd01ee -
Christian Hergert authoredadbf6045
-
Christian Hergert authored
This isn't used anymore, and we won't need it as we have GBindingGroup upstream in GLib now.
313400b4 -
Christian Hergert authored
We need recent GTK and GLib for this release so that we have the necessary bug fixes we rely on.
0f78857d -
Christian Hergert authored
Now that we have GSignalGroup in GObject directly, we no longer need to carry our copy of the implementation in-tree. Just use GObject's directly.
8f27e65c -
Christian Hergert authored550b9a98
-
Christian Hergert authored
This way things still relatively line up with the text inside the hover assistant popover.
23ffbdf4 -
Christian Hergert authored
Using a bold red color for errors might have matched the original styles of Solarized when it was captive to a terminal, but it does not very much match modern IDEs and editors when it comes to what the pango renderer can do. Instead, use the expected error styling but color to match the Solarized palette.
5f629591 -
Christian Hergert authored
We might have to compile libsass, which will want a newer cpp_std.
2734c4bd -
Christian Hergert authored45ce2dfe
-
Christian Hergert authored
Not all of these are intended to be used as installed tests, but rather to be used by CI to ensure that merge requests don't regress features. Fixes #288
24e723ed -
Christian Hergert authored
We can compile on older releases just fine, even if it means that some issues would be present if that were the case.
2367820e -
Christian Hergert authored
This is useful for IDEs, and needs standardization upstream at somepoint so that we can use it across tooling.
b65c972a -
Xavier Claessens authored
When building on Windows with MSVC it fails to build pcre2, but the issue was already fixed in WrapDB.
e5142cef -
Christian Hergert authored
meson: Update pcre2 wrap See merge request GNOME/gtksourceview!286
3ab2baef -
Christian Hergert authored
These can use error underlines instead of the blocky forms that are there already as we've done in other schemes.
9f3e602d -
Christian Hergert authored
This just looks a bit better since we want to match under the whole line not just where underbar might be.
9d3aac39 -
Christian Hergert authored
We need to provide the length or we wont properly join the strings in all cases here.
044847a1 -
Christian Hergert authored
This requires on state within the testsuite directory, and therefore cannot be used for system installed tests. Fixes #291
56e367d1 -
Christian Hergert authored4fe70ddf
-
Jeremy Bicha authored958f0a94
gtksourceview/GtkSource-5.metadata
0 → 100644
This diff is collapsed.