Refactor: DECLARE_FINAL GncFrequency < GtkBox

This commit is contained in:
Richard Cohen 2023-06-12 19:55:30 +01:00
parent 1540a645fc
commit 1fa45a352a
2 changed files with 2 additions and 13 deletions

View File

@ -109,7 +109,7 @@ gnc_frequency_class_init( GncFrequencyClass *klass )
g_signal_new ("changed",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GncFrequencyClass, changed),
0,
NULL,
NULL,
g_cclosure_marshal_VOID__VOID,

View File

@ -34,9 +34,7 @@ extern "C" {
#endif
#define GNC_TYPE_FREQUENCY (gnc_frequency_get_type())
#define GNC_FREQUENCY(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, GNC_TYPE_FREQUENCY, GncFrequency)
#define GNC_FREQENCY_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, GNC_TYPE_FREQUENCY, GncFrequency)
#define GNC_IS_FREQUENCY(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, GNC_TYPE_FREQUENCY)
G_DECLARE_FINAL_TYPE (GncFrequency, gnc_frequency, GNC, FREQUENCY, GtkBox)
/**
* A GncFrequency is a VBox containing a scrollable GtkNotebook [and other
@ -54,13 +52,6 @@ typedef struct _GncFrequency
GtkBuilder *builder;
} GncFrequency;
typedef struct _GncFrequencyClass
{
GtkBoxClass parent_class;
void (*changed) (GncFrequency *gf);
} GncFrequencyClass;
struct pageDataTuple
{
int idx;
@ -68,8 +59,6 @@ struct pageDataTuple
char *name;
};
GType gnc_frequency_get_type(void);
/**
* Either or both param may be NULL for reasonable defaults.
**/