Created ag-chart-error-quark and AgChartError enum
This commit is contained in:
parent
0571253730
commit
1541e381c5
@ -16,6 +16,8 @@ enum {
|
|||||||
PROP_CITY
|
PROP_CITY
|
||||||
};
|
};
|
||||||
|
|
||||||
|
G_DEFINE_QUARK(ag-chart-error-quark, ag_chart_error);
|
||||||
|
|
||||||
G_DEFINE_TYPE(AgChart, ag_chart, GSWE_TYPE_MOMENT);
|
G_DEFINE_TYPE(AgChart, ag_chart, GSWE_TYPE_MOMENT);
|
||||||
|
|
||||||
#define GET_PRIVATE(instance) (G_TYPE_INSTANCE_GET_PRIVATE((instance), AG_TYPE_CHART, AgChartPrivate))
|
#define GET_PRIVATE(instance) (G_TYPE_INSTANCE_GET_PRIVATE((instance), AG_TYPE_CHART, AgChartPrivate))
|
||||||
|
@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
AG_CHART_ERROR_LIBXML,
|
||||||
|
AG_CHART_ERROR_CORRUPT_FILE,
|
||||||
|
} AgChartError;
|
||||||
|
|
||||||
#define AG_TYPE_CHART (ag_chart_get_type())
|
#define AG_TYPE_CHART (ag_chart_get_type())
|
||||||
#define AG_CHART(o) (G_TYPE_CHECK_INSTANCE_CAST((o), AG_TYPE_CHART, AgChart))
|
#define AG_CHART(o) (G_TYPE_CHECK_INSTANCE_CAST((o), AG_TYPE_CHART, AgChart))
|
||||||
#define AG_CHART_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), AG_TYPE_CHART, AgChartClass))
|
#define AG_CHART_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), AG_TYPE_CHART, AgChartClass))
|
||||||
@ -39,6 +44,9 @@ gchar *ag_chart_get_country(AgChart *chart);
|
|||||||
void ag_chart_set_city(AgChart *chart, const gchar *city);
|
void ag_chart_set_city(AgChart *chart, const gchar *city);
|
||||||
gchar *ag_chart_get_city(AgChart *chart);
|
gchar *ag_chart_get_city(AgChart *chart);
|
||||||
|
|
||||||
|
#define AG_CHART_ERROR (ag_chart_error_quark())
|
||||||
|
GQuark ag_chart_error_quark(void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __AG_CHART_H__ */
|
#endif /* __AG_CHART_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user