textview: Don't update action state in dispose
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Feb 2020 21:40:11 +0000 (22:40 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Feb 2020 06:01:47 +0000 (01:01 -0500)
commit47c21a255f9757596d9982a277e248b678f1e30a
treec6832502f06dbd43c61aeac1746ec7c474d21e21
parent005ea7a09d719894ec38f98ec622f0291571a93f
textview: Don't update action state in dispose

Only update the action state when we have a text buffer,
there is no need to do it otherwise, since we are going
to get a buffer before we get shown. This avoids triggering
the action state updates from finalize, which is a bad
time to be recreating the action muxer.
gtk/gtktextview.c