]> Dogcows Code - chaz/homebank/blob - src/list_topspending.c
Merge branch 'master' into ext-perl
[chaz/homebank] / src / list_topspending.c
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2017 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21 #include "homebank.h"
22
23 #include "list_topspending.h"
24
25 /****************************************************************************/
26 /* Debug macros */
27 /****************************************************************************/
28 #define MYDEBUG 0
29
30 #if MYDEBUG
31 #define DB(x) (x);
32 #else
33 #define DB(x);
34 #endif
35
36 /* our global datas */
37 extern struct HomeBank *GLOBALS;
38 extern struct Preferences *PREFS;
39
40 GtkWidget *create_list_topspending(void)
41 {
42 GtkListStore *store;
43 GtkWidget *view;
44
45 /* create list store */
46 store = gtk_list_store_new(
47 NUM_LST_TOPSPEND,
48 G_TYPE_INT,
49 G_TYPE_INT,
50 G_TYPE_STRING, //category
51 G_TYPE_DOUBLE, //amount
52 G_TYPE_INT //rate
53 );
54
55 //treeview
56 view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
57 g_object_unref(store);
58
59 return(view);
60 }
61
This page took 0.038122 seconds and 5 git commands to generate.