From 52e8524ec55374e71c5fda3cfc6431fd00cc480a Mon Sep 17 00:00:00 2001 From: Richard Cohen Date: Wed, 28 Jun 2023 13:43:27 +0100 Subject: [PATCH] Refactor: hide implementation of GncSxInstanceModel (move from .h -> .c) --- libgnucash/app-utils/gnc-sx-instance-model.c | 12 ++++++++++++ libgnucash/app-utils/gnc-sx-instance-model.h | 18 ------------------ 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/libgnucash/app-utils/gnc-sx-instance-model.c b/libgnucash/app-utils/gnc-sx-instance-model.c index c0ba5c90ac..27e19ae582 100644 --- a/libgnucash/app-utils/gnc-sx-instance-model.c +++ b/libgnucash/app-utils/gnc-sx-instance-model.c @@ -72,6 +72,18 @@ typedef struct _SxTxnCreationData GList **creation_errors; } SxTxnCreationData; +struct _GncSxInstanceModel +{ + GObject parent; + gboolean disposed; + + gint qof_event_handler_id; + + GDate range_end; + gboolean include_disabled; + GList *sx_instance_list; /* */ +}; + static GncSxInstanceModel* gnc_sx_instance_model_new(void); static GncSxInstance* gnc_sx_instance_new(GncSxInstances *parent, GncSxInstanceState state, GDate *date, void *temporal_state, gint sequence_num); diff --git a/libgnucash/app-utils/gnc-sx-instance-model.h b/libgnucash/app-utils/gnc-sx-instance-model.h index fc1b5fca3f..6d2c6da3c4 100644 --- a/libgnucash/app-utils/gnc-sx-instance-model.h +++ b/libgnucash/app-utils/gnc-sx-instance-model.h @@ -37,24 +37,6 @@ G_BEGIN_DECLS #define GNC_TYPE_SX_INSTANCE_MODEL (gnc_sx_instance_model_get_type ()) G_DECLARE_FINAL_TYPE (GncSxInstanceModel, gnc_sx_instance_model, GNC, SX_INSTANCE_MODEL, GObject) -typedef struct _GncSxInstanceModel -{ - GObject parent; - gboolean disposed; - - /* private */ - gint qof_event_handler_id; - - /* signals */ - /* void (*added)(SchedXaction *sx); // gpointer user_data */ - /* void (*updated)(SchedXaction *sx); // gpointer user_data */ - /* void (*removing)(SchedXaction *sx); // gpointer user_data */ - - GDate range_end; - gboolean include_disabled; - GList *sx_instance_list; /* */ -} GncSxInstanceModel; - typedef struct _GncSxInstances { SchedXaction *sx;