Re: [AD] Removing the default close button support |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
>Therefore I propose to get rid of both set_window_close_button() (useless
now)
and set_window_close_hook() (nasty name: Allegro uses callbacks, not hooks)
and add set_close_button_callback(). For backward compatibility,
set_window_close_button() would be a dummy function and
set_window_close_hook() redirected to set_close_button_callback()
Agreed, though I think there should be an option so when you pass NULL to
set_close_button_callback() it will disable the close button again