diff --git a/src/gui/components/cc_types.h b/src/gui/components/cc_types.h index fad00f87e..07f501fa4 100644 --- a/src/gui/components/cc_types.h +++ b/src/gui/components/cc_types.h @@ -200,11 +200,17 @@ typedef struct button_label_cc int btn_alias; std::string bg_image; std::string hint; + uint32_t order_id; //defaults button_label_cc(): button(NULL), text(std::string()), locale(NONEXISTANT_LOCALE), - directKeys(0, RC_NOKEY /*CRCInput::RC_nokey*/){} + directKeys(0, RC_NOKEY /*CRCInput::RC_nokey*/), + order_id(0){} + bool operator< (const button_label_cc& i) const + { + return this->order_id < i.order_id ; + } } button_label_cc_struct; #define CC_WIDTH_MIN CFrameBuffer::getInstance()->scale2Res(16)