Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#10 gitk crashes gitk on event ON_CHANGED and relayout

open
Stefan Sauer
core (12)
6
2004-11-11
2004-11-11
Michael Randel
No

Hi, the following approach crashes gitk. Open a dialog
and register a eventhandler on it to handle events of
type GITK_EVENT_TYPE_ON_CLICKED. Let this handler open
a new dialog (SHOW MODAL) and register another
eventhandler on it to handle events of types
GITK_EVENT_TYPE_ON_CLICKED and
GITK_EVENT_TYPE_ON_CHANGED. Let this handler perform
the following operations on the given dialog:

gitk_dialog_hide(dialog);
//gitk_dialog_invalidate(dialog);
gitk_dialog_show(dialog,1);

On event GITK_EVENT_TYPE_ON_CLICKED everything works
fine, but on event GITK_EVENT_TYPE_ON_CHANGED the
program crashes. Any idea why this happens?!

Discussion