summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_main.c')
-rw-r--r--src/lib/elementary/elm_main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 3cb2318..e470600 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -398,6 +398,19 @@ _sys_lang_changed(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA
398 return ECORE_CALLBACK_PASS_ON; 398 return ECORE_CALLBACK_PASS_ON;
399} 399}
400 400
401EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_NONE = 0;
402EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_DEFAULT = 0;
403EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_GENERIC = 0;
404
405static void
406_efl_ui_theme_apply_error_init(void)
407{
408 if (EFL_UI_THEME_APPLY_ERROR_DEFAULT) return;
409 /* NONE should always be 0 */
410 EFL_UI_THEME_APPLY_ERROR_DEFAULT = eina_error_msg_static_register("Fallback to default style was enabled for this widget");
411 EFL_UI_THEME_APPLY_ERROR_GENERIC = eina_error_msg_static_register("An error occurred and no theme could be set for this widget");
412}
413
401// This is necessary to keep backward compatibility 414// This is necessary to keep backward compatibility
402static const char *bcargv[] = { "exe" }; 415static const char *bcargv[] = { "exe" };
403 416
@@ -436,6 +449,7 @@ elm_init(int argc, char **argv)
436 if (_efl_startup_time <= 0) 449 if (_efl_startup_time <= 0)
437 _efl_startup_time = _elm_startup_time; 450 _efl_startup_time = _elm_startup_time;
438 _elm_startup_time = _efl_startup_time; 451 _elm_startup_time = _efl_startup_time;
452 _efl_ui_theme_apply_error_init();
439 453
440 return _elm_init_count; 454 return _elm_init_count;
441shutdown_ql: 455shutdown_ql: