Bug in my last patch... Oops. Here's a fix.
Derek Atkins
warlord@MIT.EDU
12 Nov 2001 23:26:31 -0500
I mistakenly changed a currency_edit widget to the general_select
widget, and that was wrong. It resulted in a GTK error when you
bring up, oh, the price editor. Anyways, this patch fixes my
bug and reverts some of the calls back to their original CURRENCY_EDIT
calls.
-derek
Index: src/gnome-utils/dialog-options.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome-utils/dialog-options.c,v
retrieving revision 1.2
diff -u -r1.2 dialog-options.c
--- src/gnome-utils/dialog-options.c 2001/11/11 05:12:00 1.2
+++ src/gnome-utils/dialog-options.c 2001/11/13 04:24:14
@@ -275,7 +275,7 @@
commodity = gnc_scm_to_commodity (value);
if (commodity)
- gnc_general_select_set_selected(GNC_GENERAL_SELECT(widget), commodity);
+ gnc_currency_edit_set_currency(GNC_CURRENCY_EDIT(widget), commodity);
else
bad_value = TRUE;
}
@@ -564,7 +564,7 @@
gnc_commodity *commodity;
commodity =
- gnc_general_select_get_selected(GNC_GENERAL_SELECT(widget));
+ gnc_currency_edit_get_currency(GNC_CURRENCY_EDIT(widget));
result = gnc_commodity_to_scm (commodity);
}
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available