diff options
Diffstat (limited to 'views/view.h')
-rw-r--r-- | views/view.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/views/view.h b/views/view.h index 8f362f1..d7144f7 100644 --- a/views/view.h +++ b/views/view.h @@ -874,10 +874,12 @@ class View : public AcceleratorTarget { // parent is automatically deleted when the parent is deleted. The default is // true. Set to false if the view is owned by another object and should not // be deleted by its parent. - void SetParentOwned(bool f); + void set_parent_owned(bool is_parent_owned) { + is_parent_owned_ = is_parent_owned; + } - // Return whether a view is owned by its parent. See SetParentOwned() - bool IsParentOwned() const; + // Return whether a view is owned by its parent. + bool IsParentOwned() const { return is_parent_owned_; } // Return the receiving view's class name. A view class is a string which // uniquely identifies the view class. It is intended to be used as a way to |