static void gnc_dialog_query_list_double_click_entry (GNCQueryList *list, gpointer item, gpointer user_data) { DialogQueryList *dql = user_data; g_return_if_fail (dql); g_return_if_fail (item); if (!dql->buttons) return; gnc_dialog_query_run_callback (dql->buttons, item, dql); }
static void gnc_dialog_query_view_double_click_entry (GNCQueryView *qview, gpointer item, gpointer user_data) { DialogQueryView *dqv = user_data; g_return_if_fail (dqv); g_return_if_fail (item); if (!dqv->buttons) return; gnc_dialog_query_run_callback (dqv->buttons, item, dqv); }
static void gnc_dialog_query_list_button_clicked (GtkButton *button, DialogQueryList *dql) { GNCDisplayListButton *cb; gpointer current; g_return_if_fail (dql); current = gnc_query_list_get_current_entry (GNC_QUERY_LIST (dql->qlist)); if (!current) return; cb = g_object_get_data (G_OBJECT (button), "data"); g_return_if_fail (cb); gnc_dialog_query_run_callback (cb, current, dql); }
static void gnc_dialog_query_view_button_clicked (GtkButton *button, DialogQueryView *dqv) { GNCDisplayViewButton *cb; gpointer entry; g_return_if_fail (dqv); entry = gnc_query_view_get_selected_entry (GNC_QUERY_VIEW (dqv->qview)); if (!entry) return; cb = g_object_get_data (G_OBJECT (button), "data"); g_return_if_fail (cb); gnc_dialog_query_run_callback (cb, entry, dqv); }