Simplify.

SVN revision: 24000
This commit is contained in:
sebastid 2006-07-17 20:30:48 +00:00 committed by sebastid
parent 4e697fefca
commit 95cead6ea7
1 changed files with 1 additions and 6 deletions

View File

@ -634,13 +634,8 @@ ACT_FN_GO(window_shaded)
/***************************************************************************/
ACT_FN_GO(window_borderless_toggle)
{
if (!obj) obj = E_OBJECT(e_border_focused_get());
if ((!obj) || (obj->type != E_BORDER_TYPE)) obj = E_OBJECT(e_border_focused_get());
if (!obj) return;
if (obj->type != E_BORDER_TYPE)
{
obj = E_OBJECT(e_border_focused_get());
if (!obj) return;
}
if (!((E_Border *)obj)->lock_border)
{
E_Border *bd;