Skip to content

Commit 120dabf

Browse files
committed
I'm so sorry
1 parent d7d0513 commit 120dabf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/GtkCodeGen/GtkCodeGen.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,14 @@ struct GtkCodeGen {
225225
else {
226226
return false
227227
}
228-
229228
// Can cause problems with gtk versions older than 4.20.0
230229
guard
231-
!(member.cIdentifier == "GTK_PAD_ACTION_DIAL",
232-
member.name == "PadActionType")
230+
!(member.cIdentifier == "GTK_PAD_ACTION_DIAL"
231+
&& enumeration.name == "PadActionType")
233232
else {
234233
return false
235234
}
236-
235+
237236
if let doc = member.doc {
238237
// Why they gotta be inconsistent like that 💀
239238
return !doc.contains("Since: ") && !doc.contains("Since ")

0 commit comments

Comments
 (0)