I am currently struggling with screen updates (for the find-dialog of FBReader). I am using the erutils-functions with a wrapper file I copied from notepad (notepad_display_sched.cpp).
I saw that in notepad the following calls are made:
Code:
notepad_stop_display_update();
GtkWidget* infodialog = gtk_message_dialog_new(...)
notepad_on_timeout_display_yield(400, DM_HINT_FULL);
gtk_dialog_run(GTK_DIALOG(infodialog));
If I use the same order of instructions (stop_display_update(), create part of the dialog and then on_timeout_display_yield() ) I do not get a screen update, so the dialog is not shown. Also calling stop_display_update(), display_update((void*)DM_HINT_FULL) and start_display_update() does not lead to an update.
My modified function:
I assume I am missing some clues, is there anyone with some more experience to give me some hints on how to continue?
Thanks,
Marcel