/* Function to get the UI Value for a particular option */ static SCM taxtable_get_value (GNCOption *option, GtkWidget *widget) { GncTaxTable *taxtable; taxtable = gnc_simple_combo_get_value (GTK_COMBO_BOX(widget)); return SWIG_NewPointerObj(taxtable, SWIG_TypeQuery("_p__gncTaxTable"), 0); }
void gnc_customer_taxtable_changed_cb (GtkWidget *widget, gpointer data) { GtkComboBox *cbox = GTK_COMBO_BOX (widget); CustomerWindow *cw = data; if (!cw) return; if (!cbox) return; cw->taxtable = gnc_simple_combo_get_value (cbox); }