mirror of
https://github.com/flatpak/flatpak.git
synced 2026-09-12 22:22:09 -04:00
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.
This commit is contained in:
1 parent
a4bea5dca9
commit
dd86b3cf6b
2 files changed
+3
-3
No files matched your search
@@ -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 ***/
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user