mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add GtkComboBoxText items
This commit is contained in:
parent
f1e1811e1f
commit
aa447466c0
12 changed files with 137 additions and 17 deletions
|
@ -77,9 +77,8 @@ widgets = Group(
|
|||
|
||||
@completer(
|
||||
applies_in=[ast.ObjectContent],
|
||||
applies_in_subclass=("Gtk", "SizeGroup"),
|
||||
matches=new_statement_patterns,
|
||||
)
|
||||
def file_filter_completer(ast_node, match_variables):
|
||||
file_filter = ast_node.root.gir.get_type("SizeGroup", "Gtk")
|
||||
if ast_node.gir_class and ast_node.gir_class.assignable_to(file_filter):
|
||||
yield Completion("widgets", CompletionItemKind.Snippet, snippet="widgets [$0];")
|
||||
def size_group_completer(ast_node, match_variables):
|
||||
yield Completion("widgets", CompletionItemKind.Snippet, snippet="widgets [$0];")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue