Skip to content

Commit

Permalink
Reimplemented setApplicationTitle from YApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Nov 2, 2012
1 parent 575f320 commit 0174723
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NCApplication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,10 @@ NCApplication::hasFullUtf8Support()
{
return ( NCstring::terminalEncoding() == "UTF-8" );
}

void NCApplication::setApplicationTitle ( const std::string& title )
{
YApplication::setApplicationTitle ( title );
NCurses::SetTitle(title);
}

7 changes: 7 additions & 0 deletions src/NCApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ class NCApplication: public YApplication
virtual bool richTextSupportsTable() { return false; }

virtual bool leftHandedMouse() { return false; }

/**
* Set the application title
*
* Reimplemented from YApplication.
**/
virtual void setApplicationTitle(const std::string& title);
};


Expand Down

0 comments on commit 0174723

Please sign in to comment.