mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* option-util.c: add gnc_option_get_option_data() function
* dialog-options: publish gnc_options_dialog_changed_internal() so pluggible options can set the flag, too. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7083 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
512bb1be52
commit
74388444a2
@ -896,6 +896,21 @@ gnc_option_show_time(GNCOption *option)
|
||||
return gh_scm2bool(value);
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
* gnc_option_get_option_data *
|
||||
* returns the option data of this option *
|
||||
* *
|
||||
* Args: option - the GNCOption *
|
||||
* Returns: the option data *
|
||||
\********************************************************************/
|
||||
SCM
|
||||
gnc_option_get_option_data(GNCOption *option)
|
||||
{
|
||||
initialize_getters();
|
||||
|
||||
return gh_call1(getters.option_data, option->guile_option);
|
||||
}
|
||||
|
||||
|
||||
/********************************************************************\
|
||||
* gnc_option_multiple_selection *
|
||||
|
@ -84,6 +84,7 @@ SCM gnc_option_setter(GNCOption *option);
|
||||
SCM gnc_option_default_getter(GNCOption *option);
|
||||
SCM gnc_option_value_validator(GNCOption *option);
|
||||
SCM gnc_option_widget_changed_proc_getter(GNCOption *option);
|
||||
SCM gnc_option_get_option_data(GNCOption *option);
|
||||
|
||||
int gnc_option_num_permissible_values(GNCOption *option);
|
||||
int gnc_option_permissible_value_index(GNCOption *option, SCM value);
|
||||
|
@ -123,7 +123,7 @@ gnc_options_dialog_get_cancel_button (GtkWidget *widget)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
gnc_options_dialog_changed_internal (GtkWidget *widget)
|
||||
{
|
||||
GtkWidget *button;
|
||||
|
@ -91,4 +91,7 @@ void gnc_options_ui_initialize (void);
|
||||
void gnc_options_ui_register_option (GNCOptionDef_t *option);
|
||||
GNCOptionDef_t * gnc_options_ui_get_option (const char *option_name);
|
||||
|
||||
/* For option definitions outside the main module only */
|
||||
void gnc_options_dialog_changed_internal (GtkWidget *widget);
|
||||
|
||||
#endif /* OPTIONS_DIALOG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user