Author: bugman Date: Thu Jul 7 10:07:21 2011 New Revision: 13468 URL: http://svn.gna.org/viewcvs/relax?rev=13468&view=rev Log: The user function windows now use _doc_title_short for the titles. If this doesn't exist, it falls back to _doc_title. Modified: branches/gui_testing/gui/user_functions/base.py Modified: branches/gui_testing/gui/user_functions/base.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/base.py?rev=13468&r1=13467&r2=13468&view=diff ============================================================================== --- branches/gui_testing/gui/user_functions/base.py (original) +++ branches/gui_testing/gui/user_functions/base.py Thu Jul 7 10:07:21 2011 @@ -81,11 +81,14 @@ uf = getattr(uf_class, self.uf_path[1]) # Set the user function title. - self.title = uf._doc_title + if hasattr(uf, '_doc_title_short'): + self.title = uf._doc_title_short + else: + self.title = uf._doc_title # Set the main text to the description doc. if hasattr(uf, '_doc_desc'): - self.main_text = self.title + '\n\n' + self._format_text(uf._doc_desc) + self.main_text = uf._doc_title + '\n\n' + self._format_text(uf._doc_desc) # Remove trailing newlines. if self.main_text[-1] == '\n':