diff --git a/ChangeLog b/ChangeLog index e7313d541c..7709af5cb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ move handle_exchange() API from -p.h to .h to export it for the menus to call. + * src/gnome/gnc-split-reg.c: add a handler for + exchange-rate menu items.. Partial fix for #100285 + 2002-12-03 Derek Atkins * src/register/ledger-core/split-register-control.c: diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c index 7a9f9bada8..36100d37fd 100644 --- a/src/gnome/gnc-split-reg.c +++ b/src/gnome/gnc-split-reg.c @@ -187,6 +187,9 @@ void gnc_split_reg_size_allocate( GtkWidget *widget, GtkAllocation *allocation, gpointer user_data ); + +void gnc_split_reg_handle_exchange_cb (GtkWidget *w, gpointer data); + static void gnc_split_reg_class_init( GNCSplitRegClass *class ); static void gnc_split_reg_init( GNCSplitReg *gsr ); static void gnc_split_reg_init2( GNCSplitReg *gsr ); @@ -1593,6 +1596,16 @@ gnc_split_reg_sort_desc_cb(GtkWidget *w, gpointer data) gnc_split_reg_sort(gsr, BY_DESC); } +void +gnc_split_reg_handle_exchange_cb (GtkWidget *w, gpointer data) +{ + GNCSplitReg *gsr = data; + SplitRegister *reg = gnc_ledger_display_get_split_register (gsr->ledger); + + /* XXX Ignore the return value -- we don't care if this succeeds */ + (void)gnc_split_register_handle_exchange (reg, TRUE); +} + static void gnc_split_reg_record (GNCSplitReg *gsr) {