X-Git-Url: https://git.brokenzipper.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhub-spending.h;fp=src%2Flist_topspending.h;h=3df241a787d51346bfee0971b63e5dd792f89c79;hp=0be816cffa670e6162fad274e6fa127b1d11eeac;hb=a6c6b0df5492c2160ed97e3a376bdb2fe7c5ebc4;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6 diff --git a/src/list_topspending.h b/src/hub-spending.h similarity index 71% rename from src/list_topspending.h rename to src/hub-spending.h index 0be816c..3df241a 100644 --- a/src/list_topspending.h +++ b/src/hub-spending.h @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2018 Maxime DOYEN + * Copyright (C) 1995-2019 Maxime DOYEN * * This file is part of HomeBank. * @@ -17,8 +17,18 @@ * along with this program. If not, see . */ -#ifndef __LIST_TOPSPENDING__H__ -#define __LIST_TOPSPENDING__H__ +#ifndef __HUB_SPENDING_H__ +#define __HUB_SPENDING_H__ + + +struct tmptop +{ + guint32 key; + gdouble value; +}; + + +#define MAX_TOPSPENDING 10 /* list top spending */ @@ -34,6 +44,10 @@ enum }; -GtkWidget *create_list_topspending(void); -#endif +void ui_hub_spending_update(GtkWidget *widget, gpointer user_data); +void ui_hub_spending_populate(GtkWidget *widget, gpointer user_data); +GtkWidget *ui_hub_spending_create(struct hbfile_data *data); + + +#endif \ No newline at end of file