*
* Copyright (c) Tuomo Valkonen 2005-2007.
*
- * Ion is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
*/
#include <libtu/objp.h>
}
-static WRegion *add_fn_reparent(WWindow *par, const WFitParams *fp,
- WRegion *reg)
-{
- if(!region_fitrep(reg, par, fp)){
- warn(TR("Unable to reparent."));
- return NULL;
- }
- region_detach_manager(reg);
- return reg;
-}
-
-
WRegion *pholder_attach_(WPHolder *ph, int flags, WRegionAttachData *data)
{
WPHolder *root=pholder_root(ph);
{
WRegion *target=pholder_do_target(ph);
- if(target==NULL)
- return FALSE;
- else
- return region_attach_reparent_check(target, reg);
+ return (target==NULL
+ ? FALSE
+ : region_ancestor_check(target, reg));
}