X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fframe.cc;h=ce5e961ea4c8d4e3ef0aeb873e3b9ecc15407ab0;hb=4dba699857918d0feda52c71c58eccd08839ec8b;hp=12a42ec2a9b481ce402e688ad69f08c56fc66bc5;hpb=77ab46d1e35d48e73c201e6de88b26f48bb06425;p=chaz%2Fopenbox diff --git a/src/frame.cc b/src/frame.cc index 12a42ec2..ce5e961e 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -64,7 +64,7 @@ Frame::~Frame() } -void Frame::setTitle(const std::string &text) +void Frame::setTitle(const otk::ustring &text) { _label.setText(text); _label.update(); @@ -172,7 +172,7 @@ void Frame::adjustSize() // separation between titlebar elements const int sep = bevel + 1; - std::string layout; + otk::ustring layout; if (!python_get_string("titlebar_layout", &layout)) layout = "ILMC"; @@ -223,7 +223,7 @@ void Frame::adjustSize() layout.erase(i--, 1); } if (!tit_l) - layout.append(1, 'L'); + layout += "L"; // the size of the label. this ASSUMES the layout has only buttons other // that the ONE LABEL!!