[libdazzle] panel: remove more bitfields



commit 2cbdbe1a14d5ff79e264f0d5a1a271095808f609
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 27 22:13:02 2021 -0700

    panel: remove more bitfields
    
    Followup to !54

 src/panel/dzl-dock-paned.c |  2 +-
 src/panel/dzl-tab-strip.c  |  4 ++--
 src/panel/dzl-tab.c        | 14 +++++++-------
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/panel/dzl-dock-paned.c b/src/panel/dzl-dock-paned.c
index 4d6f659..a32666a 100644
--- a/src/panel/dzl-dock-paned.c
+++ b/src/panel/dzl-dock-paned.c
@@ -27,7 +27,7 @@
 
 typedef struct
 {
-  GtkPositionType child_edge : 2;
+  GtkPositionType child_edge;
 } DzlDockPanedPrivate;
 
 G_DEFINE_TYPE_EXTENDED (DzlDockPaned, dzl_dock_paned, DZL_TYPE_MULTI_PANED, 0,
diff --git a/src/panel/dzl-tab-strip.c b/src/panel/dzl-tab-strip.c
index 50cfe49..2b825b5 100644
--- a/src/panel/dzl-tab-strip.c
+++ b/src/panel/dzl-tab-strip.c
@@ -32,8 +32,8 @@ typedef struct
 {
   GAction         *action;
   GtkStack        *stack;
-  GtkPositionType  edge : 2;
-  DzlTabStyle      style : 2;
+  GtkPositionType  edge;
+  DzlTabStyle      style;
 } DzlTabStripPrivate;
 
 static void buildable_iface_init (GtkBuildableIface *iface);
diff --git a/src/panel/dzl-tab.c b/src/panel/dzl-tab.c
index a3ead16..597c644 100644
--- a/src/panel/dzl-tab.c
+++ b/src/panel/dzl-tab.c
@@ -30,12 +30,6 @@ struct _DzlTab { GtkEventBox parent; };
 
 typedef struct
 {
-  /*
-   * The edge the tab is being displayed upon. We use this to rotate
-   * text or alter box orientation.
-   */
-  GtkPositionType edge : 2;
-
   /* Can we be closed by the user */
   guint can_close : 1;
 
@@ -51,8 +45,14 @@ typedef struct
   /* If we are currently activating */
   guint in_activate : 1;
 
+  /*
+   * The edge the tab is being displayed upon. We use this to rotate
+   * text or alter box orientation.
+   */
+  GtkPositionType edge;
+
   /* Our icon/text style */
-  DzlTabStyle style : 2;
+  DzlTabStyle style;
 
   /* The action name to change the current tab */
   gchar *action_name;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]