[GNC-dev] Not getting signal, need a bit of help

John Ralls jralls at ceridwen.us
Tue Apr 28 23:54:03 EDT 2020



> On Apr 28, 2020, at 12:25 PM, jeanl <ripngo at gmail.com> wrote:
> 
> Devs,
> As part of launching the reconcile dialog once the matching is done, I'm
> listening to the response signal from the gnc_ofx_importer_gui (in
> gnc-ofx-import.c). So right before I launch the GNCImportMainMatcher
> gnc_ofx_importer_gui I connect to its reponse signal:
> 
> g_signal_connect (G_OBJECT (gnc_ofx_importer_gui), "response", G_CALLBACK
> (gnc_ofx_match_done), &info);
> gnc_gen_trans_list_show_all (gnc_ofx_importer_gui);
> 
> But it appears I'm not getting the response callback when I close the
> matcher with either OK or Cancel. Am I missing something obvious? 
> Any help greatly appreciated. I've pushed what I have (temporarily) to
> add_reconcile_after_ofx_import_master (you can find it in the PRs) if you
> want to look at more code.

Yeah, the GncImportMainMatcher isn't the dialog, its main_widget member is. Do

g_signal_connect (G_OBJECT (gnc_gen_trans_list_widget (gnc_ofx_importer_gui), ...

Regards,
John Ralls




More information about the gnucash-devel mailing list