Skip to content
  • Daniel Boles's avatar
    Expander: Don’t set event_window over whole widget · 18a6c5c4
    Daniel Boles authored
    realize() gave the event_window the allocation of the whole widget. This
    was wrong; it should be that of the title_gadget, as in size_allocate().
    
    This broke expanders in which :expanded is TRUE before showing: Input
    over the entire widget was sent to the title, making the child unable to
    receive it. Clicking the child unexpectedly collapsed it. Once expanded
    again, things fixed themselves as size_allocate() fixed the event_window
    alloc. So, queuing a reallocate or resize after show() was a workaround.
    
    Fix by giving event_window the allocation of the title_gadget, to match
    what size_allocate() does. That is symmetrical and just plain correct.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774134
    18a6c5c4