2001-06-05 Dave Peticolas <dave@krondo.com>

* src/gnome/dialog-fincalc.c: grey out the frequency menu
	when compounding is continuous.

	* src/engine/sql/Makefile.am: add checkpoint.h


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4482 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-06-06 06:32:18 +00:00
parent 1ebd7afeb7
commit 1751eceabc
3 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2001-06-05 Dave Peticolas <dave@krondo.com>
* src/gnome/dialog-fincalc.c: grey out the frequency menu
when compounding is continuous.
* src/engine/sql/Makefile.am: add checkpoint.h
2001-06-05 Christian Stimming <stimming@tuhh.de>
* src/scm/report/category-barchart.scm, average-balance.scm,

View File

@ -16,6 +16,7 @@ libgnc_postgres_la_SOURCES = \
noinst_HEADERS = \
PostgresBackend.h \
builder.h \
checkpoint.h \
escape.h \
gncquery.h \
kvp-sql.h \

View File

@ -282,6 +282,22 @@ fincalc_radio_toggled(GtkToggleButton *togglebutton, gpointer data)
fincalc_allow_calc(fcd, TRUE);
}
static void
fincalc_compounding_radio_toggled(GtkToggleButton *togglebutton, gpointer data)
{
FinCalcDialog *fcd = data;
gboolean sensitive;
if (fcd == NULL)
return;
fincalc_allow_calc(fcd, TRUE);
sensitive = gtk_toggle_button_get_active (togglebutton);
gtk_widget_set_sensitive (fcd->compounding_menu, sensitive);
}
static void
close_button_clicked(GtkButton *button, FinCalcDialog *fcd)
{
@ -668,7 +684,7 @@ gnc_ui_fincalc_dialog_create(void)
button = lookup_widget (fcd->dialog, "discrete_compounding_radio");
fcd->discrete_compounding_radio = button;
gtk_signal_connect(GTK_OBJECT(button), "toggled",
GTK_SIGNAL_FUNC(fincalc_radio_toggled), fcd);
GTK_SIGNAL_FUNC(fincalc_compounding_radio_toggled), fcd);
button = lookup_widget (fcd->dialog, "close_button");
gtk_signal_connect(GTK_OBJECT(button), "clicked",