mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix a prototype error and move an enum for recent GCC (you can't
have an unnamed enum within a structure) git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6985 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c86a66f9e1
commit
42d3d079b6
@ -97,8 +97,6 @@ enum gnc_dense_cal_signal_enum {
|
||||
LAST_SIGNAL
|
||||
};
|
||||
|
||||
GtkWidget *gnc_dense_cal_new();
|
||||
|
||||
static gint gnc_dense_cal_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
static void gnc_dense_cal_class_init (GncDenseCalClass *class);
|
||||
@ -346,7 +344,7 @@ gnc_dense_cal_init (GncDenseCal *dcal)
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
gnc_dense_cal_new()
|
||||
gnc_dense_cal_new(void)
|
||||
{
|
||||
GncDenseCal *dcal;
|
||||
dcal = gtk_type_new (gnc_dense_cal_get_type ());
|
||||
|
@ -42,6 +42,12 @@ typedef struct _gdc_month_coords {
|
||||
gint x, y;
|
||||
} gdc_month_coords;
|
||||
|
||||
enum GDC_COLORS {
|
||||
MONTH_THIS = 0,
|
||||
MONTH_THAT,
|
||||
MAX_COLORS
|
||||
};
|
||||
|
||||
struct _GncDenseCal
|
||||
{
|
||||
GtkWidget widget;
|
||||
@ -74,10 +80,6 @@ struct _GncDenseCal
|
||||
GdkFont *dayLabelFont;
|
||||
GdkPixmap *monthLabels[12];
|
||||
|
||||
enum GDC_COLORS {
|
||||
MONTH_THIS = 0,
|
||||
MONTH_THAT,
|
||||
MAX_COLORS };
|
||||
GdkColor weekColors[MAX_COLORS];
|
||||
|
||||
guint label_lbearing;
|
||||
@ -114,7 +116,7 @@ typedef struct _gdc_mark_data {
|
||||
GList *ourMarks;
|
||||
} gdc_mark_data;
|
||||
|
||||
GtkWidget* gnc_dense_cal_new ();
|
||||
GtkWidget* gnc_dense_cal_new (void);
|
||||
GtkType gnc_dense_cal_get_type (void);
|
||||
|
||||
void gnc_dense_cal_set_month( GncDenseCal *dcal, GDateMonth mon );
|
||||
|
Loading…
Reference in New Issue
Block a user