flags: use nick instead of name

This commit is contained in:
kotontrion 2024-11-26 10:52:37 +01:00
parent bb0178fab5
commit 3feec43b46
No known key found for this signature in database
GPG key ID: 597EFDC2EC051AD3
2 changed files with 2 additions and 2 deletions

View file

@ -216,7 +216,7 @@ class Flag(AstNode):
if not isinstance(type, Enumeration): if not isinstance(type, Enumeration):
return None return None
elif member := type.members.get(self.name): elif member := type.members.get(self.name):
return member.name return member.nick
else: else:
return None return None

View file

@ -7,7 +7,7 @@ corresponding .blp file and regenerate this file with blueprint-compiler.
<interface> <interface>
<requires lib="gtk" version="4.0"/> <requires lib="gtk" version="4.0"/>
<object class="GApplication"> <object class="GApplication">
<property name="flags">is_service|handles_open</property> <property name="flags">is-service|handles-open</property>
</object> </object>
<object class="GtkEventControllerScroll"> <object class="GtkEventControllerScroll">
<property name="flags">1</property> <property name="flags">1</property>