From 04c6dbf141323de82040cce9365ae93c1145dc4d Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sun, 1 Oct 2000 09:22:45 +0000 Subject: [PATCH] Add register combo auto-pop configuration back in. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2991 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/top-level.c | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/gnome/top-level.c b/src/gnome/top-level.c index 5a487951fd..9bea66e1df 100644 --- a/src/gnome/top-level.c +++ b/src/gnome/top-level.c @@ -78,8 +78,8 @@ static void gnc_configure_register_borders(void); static void gnc_configure_reverse_balance_cb(void *); static void gnc_configure_reverse_balance(void); static void gnc_configure_sr_label_callbacks(void); -static void gnc_configure_auto_raise_cb(void * foo) { } -static void gnc_configure_auto_raise(void) { } +static void gnc_configure_auto_raise_cb(void *); +static void gnc_configure_auto_raise(void); static void gnc_configure_auto_decimal_cb(void *); static void gnc_configure_auto_decimal(void); static void gnc_configure_auto_decimal_places_cb(void *); @@ -680,6 +680,35 @@ gnc_configure_register_borders(void) gnucash_style_set_register_borders (reg_borders); } +/* gnc_configure_auto_raise_cb + * Callback called when options change - sets + * auto-raise status of combocell class + * + * Args: Nothing + * Returns: Nothing + */ +static void +gnc_configure_auto_raise_cb(void *data) +{ + gnc_configure_auto_raise(); +} + +/* gnc_configure_auto_raise + * sets combocell auto raise status + * + * Args: Nothing + * Returns: Nothing + */ +static void +gnc_configure_auto_raise(void) +{ + gboolean auto_pop; + + auto_pop = gnc_lookup_boolean_option("Register", "Auto-Raise Lists", TRUE); + + xaccComboCellSetAutoPop(auto_pop); +} + /* gnc_configure_reverse_balance_cb * Callback called when options change - sets * reverse balance info for the callback