mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: DECLARE_FINAL GncRecurrence < GtkBox
This commit is contained in:
parent
734e9184e4
commit
ff9ee95096
@ -50,12 +50,6 @@ struct _GncRecurrence
|
||||
Recurrence recurrence;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkBoxClass parent_class;
|
||||
void (*changed) (GncRecurrence *gr);
|
||||
} GncRecurrenceClass;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GNCRECURRENCE_CHANGED,
|
||||
@ -353,7 +347,7 @@ gnc_recurrence_class_init( GncRecurrenceClass *klass )
|
||||
g_signal_new ("changed",
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GncRecurrenceClass, changed),
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
|
@ -33,16 +33,8 @@
|
||||
#include "Recurrence.h"
|
||||
|
||||
#define GNC_TYPE_RECURRENCE (gnc_recurrence_get_type())
|
||||
#define GNC_RECURRENCE(obj) G_TYPE_CHECK_INSTANCE_CAST \
|
||||
(obj, GNC_TYPE_RECURRENCE, GncRecurrence)
|
||||
#define GNC_RECURRENCE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST \
|
||||
(klass, GNC_TYPE_RECURRENCE, GncRecurrence)
|
||||
#define GNC_IS_RECURRENCE(obj) G_TYPE_CHECK_INSTANCE_TYPE \
|
||||
(obj, GNC_TYPE_RECURRENCE)
|
||||
G_DECLARE_FINAL_TYPE (GncRecurrence, gnc_recurrence, GNC, RECURRENCE, GtkBox)
|
||||
|
||||
typedef struct _GncRecurrence GncRecurrence;
|
||||
|
||||
GType gnc_recurrence_get_type(void);
|
||||
GtkWidget * gnc_recurrence_new(void);
|
||||
|
||||
void gnc_recurrence_set(GncRecurrence *gr, const Recurrence *r);
|
||||
|
Loading…
Reference in New Issue
Block a user