From f387150bf1c041cda6bb91a08a6a5d6cdbfd95d8 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 5 Apr 2019 21:52:53 +0200 Subject: [PATCH] cc_types.h: add item 'order_id' to button_label_cc struct --- src/gui/components/cc_types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)