#include "refcount.h"
extern struct HomeBank *GLOBALS;
-#include "dsp_mainwindow.h"
-#include "dsp_account.h"
+#include "dsp-mainwindow.h"
+#include "dsp-account.h"
#include "ui-transaction.h"
static inline SV* newSVgobject(const GObject* o)
{
- SV* (*func)(const GObject*, gboolean) = ext_symbol_lookup("gperl_new_object");
- if (func) {
- return func(o, FALSE);
- }
+ SV* (*func)(const GObject*, gboolean) = ext_symbol_lookup("gperl_new_object");
+ if (func) {
+ return func(o, FALSE);
+ }
return &PL_sv_undef;
}
GObject*
open(Account* SELF)
CODE:
- RETVAL = G_OBJECT(register_panel_window_new(SELF->key, SELF));
+ RETVAL = G_OBJECT(register_panel_window_new(SELF));
OUTPUT:
RETVAL
}
const gchar*
-wording(Transaction* SELF, ...)
+memo(Transaction* SELF, ...)
CODE:
if (1 < items) {
- if (SELF->wording) g_free(SELF->wording);
- SELF->wording = g_strdup(SvGchar_ptr(ST(1)));
+ if (SELF->memo) g_free(SELF->memo);
+ SELF->memo = g_strdup(SvGchar_ptr(ST(1)));
}
- RETVAL = SELF->wording ? SELF->wording : "";
+ RETVAL = SELF->memo ? SELF->memo : "";
OUTPUT:
RETVAL
GObject*
open(Transaction* SELF)
CODE:
- RETVAL = G_OBJECT(create_deftransaction_window(NULL, TRANSACTION_EDIT_MODIFY, FALSE));
+ RETVAL = G_OBJECT(create_deftransaction_window(NULL, TRANSACTION_EDIT_MODIFY, FALSE, 0));
deftransaction_set_transaction(GTK_WIDGET(RETVAL), SELF);
OUTPUT:
RETVAL
EXT_P2C_OBJECT("HomeBank::Transaction", sv, ptr, Transaction*);
list = g_list_append(list, ptr);
}
- other = ui_dialog_transaction_xfer_select_child(SELF, list);
+ ui_dialog_transaction_xfer_select_child(NULL, SELF, list, &other);
}
if (other) {
transaction_xfer_change_to_child(SELF, other);
dump(Transaction* SELF)
CODE:
g_print("txn: %p (%s) at %u (%d/%d) flags:%d, paymode:%d, kpay:%d, kcat:%d", SELF,
- SELF->wording, SELF->date, SELF->kacc, SELF->kxferacc, SELF->flags, SELF->paymode, SELF->kpay, SELF->kcat);
+ SELF->memo, SELF->date, SELF->kacc, SELF->kxferacc, SELF->flags, SELF->paymode, SELF->kpay, SELF->kcat);