[gnome-builder] egg-state-machine: Kill private header



commit 43aa88fe1e940a0065df1fd4341886fbbb974e21
Author: Garrett Regier <garrettregier gmail com>
Date:   Wed May 20 21:55:05 2015 -0700

    egg-state-machine: Kill private header
    
    This is unneeded, also remove the "actions"
    field from EggStateMachinePrivate as it is unused.

 contrib/egg/egg-state-machine-buildable.c |    1 -
 contrib/egg/egg-state-machine-private.h   |   59 -----------------------------
 contrib/egg/egg-state-machine.c           |   31 +++++++++++++++-
 3 files changed, 30 insertions(+), 61 deletions(-)
---
diff --git a/contrib/egg/egg-state-machine-buildable.c b/contrib/egg/egg-state-machine-buildable.c
index c83abb6..6456a58 100644
--- a/contrib/egg/egg-state-machine-buildable.c
+++ b/contrib/egg/egg-state-machine-buildable.c
@@ -23,7 +23,6 @@
 
 #include "egg-state-machine.h"
 #include "egg-state-machine-buildable.h"
-#include "egg-state-machine-private.h"
 
 typedef struct
 {
diff --git a/contrib/egg/egg-state-machine.c b/contrib/egg/egg-state-machine.c
index ee3933e..b4f795e 100644
--- a/contrib/egg/egg-state-machine.c
+++ b/contrib/egg/egg-state-machine.c
@@ -27,10 +27,39 @@
 #include "egg-state-machine.h"
 #include "egg-state-machine-action.h"
 #include "egg-state-machine-buildable.h"
-#include "egg-state-machine-private.h"
 
 G_DEFINE_QUARK (egg_state_machine_error, egg_state_machine_error)
 
+typedef struct
+{
+  gchar      *state;
+  GHashTable *states;
+} EggStateMachinePrivate;
+
+typedef struct
+{
+  gchar      *name;
+  GHashTable *signals;
+  GHashTable *bindings;
+  GPtrArray  *properties;
+  GPtrArray  *styles;
+} EggState;
+
+typedef struct
+{
+  EggStateMachine *state_machine;
+  gpointer         object;
+  gchar           *property;
+  GValue           value;
+} EggStateProperty;
+
+typedef struct
+{
+  EggStateMachine *state_machine;
+  GtkWidget       *widget;
+  gchar           *name;
+} EggStateStyle;
+
 G_DEFINE_TYPE_WITH_CODE (EggStateMachine, egg_state_machine, G_TYPE_OBJECT,
                          G_ADD_PRIVATE (EggStateMachine)
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,


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