mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
Messages: try to fix API message handling
Passed timeout for messeages an popup's fired by yWeb API was not really ok. For popups now we have a setting with default value of 6 seconds timeout Popups fired with ShowHint() use this as default. Value of 0 and -1 are ignored. Messages fired with ShowMsg() should be fixed and interpret value 0 or -1 as no timeout and will remain on the screen.
This commit is contained in:
@@ -321,7 +321,7 @@ int ShowMsg2UTF( const neutrino_locale_t Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -332,7 +332,7 @@ int ShowMsg2UTF( const char * const Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -343,7 +343,7 @@ int ShowMsg( const neutrino_locale_t Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -354,7 +354,7 @@ int ShowMsg( const char * const Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -365,7 +365,7 @@ int ShowMsg( const neutrino_locale_t Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -376,7 +376,7 @@ int ShowMsg( const neutrino_locale_t Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
@@ -387,7 +387,7 @@ int ShowMsg( const std::string & Title,
|
||||
const uint32_t ShowButtons,
|
||||
const char * const Icon = NULL,
|
||||
const int Width = MSGBOX_MIN_WIDTH,
|
||||
const int Timeout = -1,
|
||||
const int Timeout = NO_TIMEOUT,
|
||||
bool returnDefaultOnTimeout = false,
|
||||
const int& Text_mode = DEFAULT_MSGBOX_TEXT_MODE,
|
||||
fb_pixel_t color_frame = HINTBOX_DEFAULT_FRAME_COLOR); // UTF-8
|
||||
|
Reference in New Issue
Block a user