James Westman
64569252e3
build: Install the documentation
2024-11-15 19:46:06 -06:00
Vladimir Vaskov
a42ec3a945
docs: Put the cassette in the correct alphabetical place
2024-11-03 20:43:09 +00:00
Vladimir Vaskov
90308b69e0
docs: Add app making use of Blueprint
2024-11-03 20:43:09 +00:00
James Westman
3bf8fc151a
tests: Ignore deprecation warnings
...
Ignore deprecation warnings in the error handling tests, except in the
test specifically for deprecations. This prevents them from breaking if
libraries introduce new deprecations.
Fixes #178 .
2024-11-03 14:40:36 -06:00
James Westman
a529a61955
docs: Corrections, updates, and improvements
2024-11-03 14:17:59 -06:00
James Westman
e19975e1f8
lsp: Add reference documentation on hover
...
For most constructs and keywords, show the relevant section of the
reference documentation on hover.
2024-10-20 21:10:14 -05:00
James Westman
b107a85947
lsp: Add property docs on notify signal hover
2024-10-19 20:47:27 -05:00
James Westman
e5fba8f3c7
lsp: Add semantic tokens for flag members
2024-10-19 20:46:26 -05:00
James Westman
f6d05be10b
lsp: Add more "go to reference" implementations
2024-10-19 20:44:34 -05:00
James Westman
94b532bc35
build: Update Docker container
...
Includes a change to handle a mypy update.
2024-10-19 19:16:45 -05:00
Benedek Dévényi
c805400a39
Update file index.rst
2024-10-19 15:26:53 +00:00
James Westman
3b6dcf072d
typelib: Fix field offsets for attributes
...
This fixes a bug where the decompiler could not recognize enums by their
C identifiers because it could not correctly read attributes.
Fixes #177 .
2024-10-19 10:21:13 -05:00
James Westman
d7097cad01
docs: Mention null in literal values section
2024-09-20 17:04:00 -05:00
James Westman
8e10fcf869
Release v0.14.0
2024-08-24 14:26:46 -05:00
James Westman
65d4612b51
decompiler: Support action widgets
2024-08-24 13:24:27 -05:00
James Westman
21d5ce86e9
decompiler: Support sub-templates
...
Support GtkBuilderListItemFactory syntax by decompiling the nested XML,
rather than preserving it as a string literal.
2024-08-24 13:04:21 -05:00
James Westman
25d9826aea
decompiler: Fix translator comments in properties
2024-08-24 12:40:04 -05:00
James Westman
a12ac1b976
decompiler: Support Adw.Breakpoint syntax
...
Also, improve handling of translated strings.
2024-08-24 12:29:14 -05:00
James Westman
078ce2f5b8
cli: Add decompile command
...
This command converts .ui files to Blueprint, similar to the porting
tool, but on individual files.
2024-08-23 18:29:34 -05:00
James Westman
4d3dc92448
decompiler: Support list accessibility properties
2024-08-23 18:16:02 -05:00
Julian Schmidhuber
3dfce3bbe0
Allow for multiple a11y properties
2024-08-18 13:17:41 +02:00
James Westman
b308adc3af
Remove backslash from f-string expression
...
This restriction was removed in Python 3.12, but plenty of users still
have older versions.
2024-08-15 18:28:29 -05:00
James Westman
22514b96dc
completions: Fix invalid escape sequence
2024-07-29 17:36:41 -05:00
James Westman
c1a82a034b
decompiler: Add more decompilable tags
...
Add more tags to the list of things the decompiler can handle. This
required some changes to track the containing object class in the
DecompileCtx, since some objects use the same tag names.
The improved support means we can test the decompiler on most of the
test suite. Any new test samples will by default be tested to ensure the
decompiler produces the original blueprint file.
Also, updated the decompiler to always use double quotes.
2024-07-26 23:05:37 -05:00
James Westman
ea4c7245be
errors: Show error length with carets
...
Use multiple carets to show the span of the error (up to the end of the
first line), rather than just a caret on the first character.
2024-07-27 03:38:43 +00:00
James Westman
2dcf0c154b
errors: Fix caret when tabs are present
...
Replace all tabs with two spaces and account for that when positioning
the caret under the error location.
2024-07-27 03:38:43 +00:00
James Westman
9570dceaa8
errors: In suggestions, use "insert" or "remove"
...
Previously it always said "replace", leading to incorrect wording.
2024-07-27 03:38:43 +00:00
James Westman
8d734f7bbd
lsp: Add hover docs for lookup expression props
2024-07-27 02:52:56 +00:00
James Westman
8dfa10019b
lsp: Fix online docs links for interfaces
2024-07-27 02:52:56 +00:00
James Westman
24eed1048e
gir: Fix assignable_to for template types
...
If we don't know the template's parent type, we should be able to assign
it to an extern type, since we don't know anything about that either.
2024-07-27 02:40:27 +00:00
James Westman
3a712af4dd
Fix crash with bad escape sequence in string array
...
Invalid escape sequences aren't a fatal parser error, so the AST can be
built even when one is present, in which case the string token is None.
2024-07-26 21:10:33 -05:00
James Westman
d0659a43c2
Add test for recent bugfix
2024-07-22 20:38:58 -05:00
James Westman
b33cc7ccd7
adw-breakpoint: Fix bug when setting template prop
...
When a breakpoint setter's target object was the template, the compiler
failed with an assertion error. Fixed by allowing TemplateType objects
there. The assertion is still needed to make the type checker happy.
2024-07-22 20:31:15 -05:00
Sonny Piers
adc2be1454
Support template without parent
2024-07-04 22:14:16 +00:00
Sonny Piers
896dd7f824
fix linter
2024-07-04 22:07:02 +00:00
Sonny Piers
b76f4eef50
lsp: Use snippet for object completion
2024-07-04 22:07:02 +00:00
Sonny Piers
8c102cf9dc
lsp: Fix syntax for signal completion
2024-07-04 22:07:02 +00:00
Sonny Piers
a075b26769
lsp: Extend completion documentation
2024-07-04 22:07:02 +00:00
Diego Augusto
da5b9909fc
Support array type
2024-07-04 22:02:51 +00:00
Marco Capypara Köpcke
f1cf70b6eb
xgettext compatibility: Output 'yes' for translatable
2024-07-04 22:29:16 +02:00
Benoit Pierre
85630bc975
tests: fix tests when used as subproject
...
`meson.source_root()` will return the source root of the parent
project, not the current project when it's used as subproject.
2024-07-04 20:10:43 +00:00
Sonny Piers
e44494e6e2
decompiler: Use bind instead of bind-property
2024-06-29 13:32:34 +00:00
Szepesi Tibor
6bae860326
lsp: Fix semantic token positions
2024-06-20 13:38:12 +02:00
Valéry Febvre
aac834e1c5
docs: Fix misspelt Komikku
and repo URL
2024-06-16 21:42:50 +00:00
James Westman
442fff69b6
Fix crash in validate_parent_type
...
If the type being checked for is not found (e.g. the library is not
installed or is out of date), parent.full_name would be None.
2024-05-30 17:51:40 -05:00
Gregor Niehl
25d08e56cb
signals: Support after
keyword
2024-05-30 22:34:05 +00:00
James Westman
07e824d8e7
lang: Also allow Gtk.ListHeader in factory template
2024-05-04 12:27:12 -05:00
James Westman
c502dee36b
output: Don't add @generated notice to subtemplates
...
There's already a notice at the top of the file, it doesn't need to be
in subtemplates.
Fixes #158 .
2024-05-02 20:19:00 -05:00
James Westman
988e69ab25
lang: Allow ColumnView widgets to be built
...
Allow BuilderListItemFactory to contain Gtk.ColumnViewRow or
Gtk.ColumnViewCell templates, in addition to Gtk.ListItem templates.
This is necessary for people to use Gtk.ColumnView idiomatically in
Blueprint.
Fixes #157 .
2024-05-02 20:19:00 -05:00
Gregor Niehl
84e529a4a8
Formatter CLI: Provide option to suppress diff
2024-04-27 12:04:44 +00:00