X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Flist_topspending.c;fp=src%2Flist_topspending.c;h=0000000000000000000000000000000000000000;hp=4946f350d9654f17427691d54d9daf3b3dcefd27;hb=236cb5e47660876f46488ea8f76ecd5bebfa1fac;hpb=8892e90b335f94c296462a91534334b674226cd9 diff --git a/src/list_topspending.c b/src/list_topspending.c deleted file mode 100644 index 4946f35..0000000 --- a/src/list_topspending.c +++ /dev/null @@ -1,61 +0,0 @@ -/* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2018 Maxime DOYEN - * - * This file is part of HomeBank. - * - * HomeBank is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * HomeBank is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - - -#include "homebank.h" - -#include "list_topspending.h" - -/****************************************************************************/ -/* Debug macros */ -/****************************************************************************/ -#define MYDEBUG 0 - -#if MYDEBUG -#define DB(x) (x); -#else -#define DB(x); -#endif - -/* our global datas */ -extern struct HomeBank *GLOBALS; -extern struct Preferences *PREFS; - -GtkWidget *create_list_topspending(void) -{ -GtkListStore *store; -GtkWidget *view; - - /* create list store */ - store = gtk_list_store_new( - NUM_LST_TOPSPEND, - G_TYPE_INT, - G_TYPE_INT, - G_TYPE_STRING, //category - G_TYPE_DOUBLE, //amount - G_TYPE_INT //rate - ); - - //treeview - view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); - g_object_unref(store); - - return(view); -} -