Merge branch 'no-enums-in-bitfields' into 'main'

Stop using enums in bitfields

See merge request GNOME/gtk!6467
This commit is contained in:
Matthias Clasen 2023-10-10 22:48:11 +00:00
commit fc4c0f769c
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ struct _GdkIOPipe
GCond cond; GCond cond;
guchar *buffer; guchar *buffer;
gsize size; gsize size;
GdkIOPipeState state : 2; guint state : 2; /* GdkIOPipeState */
guint input_closed : 1; guint input_closed : 1;
guint output_closed : 1; guint output_closed : 1;
}; };

View File

@ -86,7 +86,7 @@ struct _GtkMenuTrackerItem
char *action_namespace; char *action_namespace;
char *action_and_target; char *action_and_target;
GMenuItem *item; GMenuItem *item;
GtkMenuTrackerItemRole role : 4; guint role : 4; /* GtkMenuTrackerItemRole */
guint is_separator : 1; guint is_separator : 1;
guint can_activate : 1; guint can_activate : 1;
guint sensitive : 1; guint sensitive : 1;

View File

@ -70,7 +70,7 @@ typedef struct {
CachedSizeX cached_size_x; CachedSizeX cached_size_x;
CachedSizeY cached_size_y; CachedSizeY cached_size_y;
GtkSizeRequestMode request_mode : 3; guint request_mode : 3; /* GtkSizeRequestMode */
guint request_mode_valid : 1; guint request_mode_valid : 1;
struct { struct {
guint n_cached_requests : 15; guint n_cached_requests : 15;