// We are wating for '\n'
if (message[message_len - 1] == '\n') {
-#ifdef CONFIG_QT
- if (display_type == DT_MARU_QT_ONSCREEN ||
- display_type == DT_MARU_QT_OFFSCREEN) {
- start_qt5_msgbox(CRITICAL_ICON, message);
- }
-#endif
-#ifdef CONFIG_JAVA_UI
- if (display_type == DT_MARU_SDL ||
- display_type == DT_MARU_SHM) {
- start_simple_client(message);
- }
+#if defined(CONFIG_QT)
+ start_qt5_msgbox(CRITICAL_ICON, message);
+#elif defined(CONFIG_JAVA_UI)
+ start_simple_client(message);
#endif
+
message[0] = '\0';
message_len = 0;
}
#define FAILED_TO_INSTALL_EXTRAPACKAGE_1 "Extra package installation is failed.\n"
#define FAILED_TO_INSTALL_EXTRAPACKAGE_2 " must be installed MANUALLY!"
#define EMULATOR_HAS_STOPPED "Emulator has stopped working.\nA problem caused the program to stop working correctly."
+#define FAILED_TO_DISPLAY_PARSING "A missing or invalid option was found during display option parsing."
/* hax error strings */
#define NO_ACCELERATOR_FOUND "No accelerator found."
#include "tizen/src/util/ui_operations.h"
#include "tizen/src/ecs/ecs.h"
#include "tizen/src/util/error_handler.h"
+#include "tizen/src/util/exported_strings.h"
# ifdef CONFIG_JAVA_UI
#include "tizen/src/display/maru_display.h"
# endif
nextopt = endptr;
} else {
invalid_maru_qt_args:
- fprintf(stderr, "Invalid maru_qt option string: %s\n", p);
+ error_report(FAILED_TO_DISPLAY_PARSING);
exit(1);
}
opts = nextopt;