andlabs / andlabs/libui

uiMainStep does not work with gtk backend

Aperta
#95 18 commenti 0 reazioni 0 assegnatari Vedi su GitHub
custom main loops
Lingua principale
C
Stelle
10.9k
Fork
612
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

it always returns false. Some investigation shows that this is because the function gtk_main_iteration_do(), which is used to implement this, needs a running main loop, and that is only created when calling gtk_main() (see https://git.gnome.org/browse/gtk+/tree/gtk/gtkmain.c?h=3.18.9). So i see no easy way to fix this... maybe an idle callback would be a prudent replacement, that should be available on all platforms...

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.