~mdoyen/homebank/trunk

« back to all changes in this revision

Viewing changes to src/hub-transaction.c

  • Committer: Maxime Doyen
  • Date: 2023-01-12 17:58:52 UTC
  • Revision ID: homebank@free.fr-20230112175852-qtqy23vexam04fim
5.6.1 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  HomeBank -- Free, easy, personal accounting for everyone.
2
 
 *  Copyright (C) 1995-2022 Maxime DOYEN
 
2
 *  Copyright (C) 1995-2023 Maxime DOYEN
3
3
 *
4
4
 *  This file is part of HomeBank.
5
5
 *
56
56
        model1 = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_txn[HUB_TXN_TYPE_FUTURE]));
57
57
        model2 = gtk_tree_view_get_model(GTK_TREE_VIEW(data->LV_txn[HUB_TXN_TYPE_REMIND]));
58
58
 
59
 
        gtk_list_store_clear (GTK_LIST_STORE(model1));
60
 
        gtk_list_store_clear (GTK_LIST_STORE(model2));
 
59
        gtk_tree_store_clear (GTK_TREE_STORE(model1));
 
60
        gtk_tree_store_clear (GTK_TREE_STORE(model2));
61
61
 
62
62
        
63
63
        lst_acc = g_hash_table_get_values(GLOBALS->h_acc);
77
77
 
78
78
                        if(txn->date > GLOBALS->today)
79
79
                        {
80
 
                                gtk_list_store_insert_with_values(GTK_LIST_STORE(model1), &iter, -1,
 
80
                                gtk_tree_store_insert_with_values(GTK_TREE_STORE(model1), &iter, NULL, -1,
81
81
                                                MODEL_TXN_POINTER, txn,
82
82
                                                MODEL_TXN_SPLITAMT, txn->amount,
83
83
                                                -1);
85
85
 
86
86
                        if(txn->status == TXN_STATUS_REMIND)
87
87
                        {
88
 
                                gtk_list_store_insert_with_values(GTK_LIST_STORE(model2), &iter, -1,
 
88
                                gtk_tree_store_insert_with_values(GTK_TREE_STORE(model2), &iter, NULL, -1,
89
89
                                                MODEL_TXN_POINTER, txn,
90
90
                                                MODEL_TXN_SPLITAMT, txn->amount,
91
91
                                                -1);
167
167
        gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
168
168
        gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE, TRUE, 0);
169
169
        
170
 
        widget = (GtkWidget *)create_list_transaction(LIST_TXN_TYPE_DETAIL, PREFS->lst_ope_columns);
 
170
        widget = (GtkWidget *)create_list_transaction(LIST_TXN_TYPE_OTHER, PREFS->lst_ope_columns);
171
171
        list_txn_set_column_acc_visible(GTK_TREE_VIEW(widget), TRUE);
172
172
        data->LV_txn[type] = widget;
173
173
        gtk_container_add (GTK_CONTAINER (sw), widget);