X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbutton.cpp;h=0dd20c7a6abb841cd4d2f9e98d1b75030d912d98;hb=9f38197854e699a6093a906ab43f4238f3cd2388;hp=fadd00a0cafedc4dd0d1996f8be7a0ec6ae8fdaf;hpb=1597579a34a8d87d4dea0a0cdc0895e6247b6126;p=libs%2Fgltk.git diff --git a/source/button.cpp b/source/button.cpp index fadd00a..0dd20c7 100644 --- a/source/button.cpp +++ b/source/button.cpp @@ -8,10 +8,7 @@ using namespace std; namespace Msp { namespace GLtk { -Button::Button(const std::string &t): - text(), - icon(0), - pressed(false) +Button::Button(const std::string &t) { input_type = INPUT_NAVIGATION; set_text(t); @@ -33,13 +30,13 @@ void Button::set_text(const std::string &t) { text = t; signal_autosize_changed.emit(); - rebuild(); + mark_rebuild(); } void Button::set_icon(const GL::Texture2D *i) { icon = i; - rebuild(); + mark_rebuild(); } void Button::rebuild_special(const Part &part)