mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Refactor: DECLARE_FINAL GNCAccountSel < GtkBox
This commit is contained in:
parent
4191c6a859
commit
8f38f44239
@ -234,7 +234,7 @@ gnc_account_sel_class_init (GNCAccountSelClass *klass)
|
||||
g_signal_new ("account_sel_changed",
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GNCAccountSelClass, account_sel_changed),
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
g_cclosure_marshal_VOID__VOID,
|
||||
|
@ -38,21 +38,8 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define GNC_TYPE_ACCOUNT_SEL (gnc_account_sel_get_type())
|
||||
#define GNC_ACCOUNT_SEL(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, GNC_TYPE_ACCOUNT_SEL, GNCAccountSel)
|
||||
#define GNC_ACCOUNT_SEL_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, GNC_TYPE_ACCOUNT_SEL, GNCAccountSelClass)
|
||||
#define GNC_IS_ACCOUNT_SEL(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, GNC_TYPE_ACCOUNT_SEL)
|
||||
G_DECLARE_FINAL_TYPE (GNCAccountSel, gnc_account_sel, GNC, ACCOUNT_SEL, GtkBox)
|
||||
|
||||
typedef struct _GNCAccountSel GNCAccountSel;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkBoxClass parent_class;
|
||||
|
||||
/* Signals for notification/filtering of changes */
|
||||
void (*account_sel_changed) (GNCAccountSel *gas);
|
||||
} GNCAccountSelClass;
|
||||
|
||||
GType gnc_account_sel_get_type (void) G_GNUC_CONST;
|
||||
GtkWidget* gnc_account_sel_new (void);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user