From dd86b3cf6bc53684e5df38d68a19dfee2c8282c5 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 30 Jun 2026 00:43:30 +0200 Subject: [PATCH] enum-types: Explicitly set the enum nick in some cases glib-mkenums fails to generate proper nicks and strips away th non- and no-. Fix those cases manually. Also fix the header guard while at it. Technically this is an API break, but the API does exactly the opposite of what it promises, so if anyone depended on this, we probably would have received a bug report. Let's take the risk and just change it. --- common/flatpak-enum-types.h.template | 2 +- common/flatpak-transaction.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/flatpak-enum-types.h.template b/common/flatpak-enum-types.h.template index 09b5dd760..ad150f300 100644 --- a/common/flatpak-enum-types.h.template +++ b/common/flatpak-enum-types.h.template @@ -20,5 +20,5 @@ FLATPAK_EXTERN GType @enum_name@_get_type (void); /*** BEGIN file-tail ***/ G_END_DECLS -#endif /* __GIO_ENUM_TYPES_H__ */ +#endif /* __FLATPAK_ENUM_TYPES_H__ */ /*** END file-tail ***/ diff --git a/common/flatpak-transaction.h b/common/flatpak-transaction.h index 21a5b4146..6ce7c76cd 100644 --- a/common/flatpak-transaction.h +++ b/common/flatpak-transaction.h @@ -59,7 +59,7 @@ typedef enum { * The details for #FlatpakTransaction::operation-error. */ typedef enum { - FLATPAK_TRANSACTION_ERROR_DETAILS_NON_FATAL = 1 << 0, + FLATPAK_TRANSACTION_ERROR_DETAILS_NON_FATAL = 1 << 0, /*< nick=non-fatal >*/ } FlatpakTransactionErrorDetails; /** @@ -69,7 +69,7 @@ typedef enum { * The details for #FlatpakTransaction::operation-done. */ typedef enum { - FLATPAK_TRANSACTION_RESULT_NO_CHANGE = 1 << 0, + FLATPAK_TRANSACTION_RESULT_NO_CHANGE = 1 << 0, /*< nick=no-change >*/ } FlatpakTransactionResult; /**