diff --git a/include/nana/gui/filebox.hpp b/include/nana/gui/filebox.hpp index 3df2abb0..a2bfb4ef 100644 --- a/include/nana/gui/filebox.hpp +++ b/include/nana/gui/filebox.hpp @@ -47,8 +47,9 @@ namespace nana /** * Changes the title. When #show()/operator()# are invoked, the dialog of filebox will be created with the specified title. * @param text Text of title + * @return the reference of *this. */ - void title( ::std::string text); + filebox& title( ::std::string text); /// Sets a initial path /** diff --git a/source/gui/filebox.cpp b/source/gui/filebox.cpp index 35fc8ca4..b200ee07 100644 --- a/source/gui/filebox.cpp +++ b/source/gui/filebox.cpp @@ -1384,9 +1384,10 @@ namespace nana impl_->owner = wd; } - void filebox::title(std::string s) + filebox& filebox::title(std::string s) { impl_->title.swap(s); + return *this; } filebox& filebox::init_path(const path_type& p)