GNCSearchWindow * gnc_customer_search_select (gpointer start, gpointer book) { if (!book) return NULL; return gnc_customer_search (start, book); }
static void gnc_plugin_business_cmd_customer_find_customer (GtkAction *action, GncMainWindowActionData *mw) { GncPluginBusiness *plugin; GncPluginBusinessPrivate *priv; GncCustomer*customer; g_return_if_fail (mw != NULL); g_return_if_fail (GNC_IS_PLUGIN_BUSINESS (mw->data)); plugin = GNC_PLUGIN_BUSINESS (mw->data); priv = GNC_PLUGIN_BUSINESS_GET_PRIVATE (plugin); customer = gncOwnerGetCustomer (priv->last_customer); gnc_customer_search (GTK_WINDOW (mw->window), customer, gnc_get_current_book ()); }