elm_win: Fixed warning after 99ab56d5
authorRyuan Choi <ryuan.choi@gmail.com>
Fri, 11 Oct 2013 12:52:15 +0000 (21:52 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Fri, 11 Oct 2013 13:05:21 +0000 (22:05 +0900)
ELM_WIDGET_SUB_ID_THEME needs to return Eina_Bool.
In addition, calls the super function of ELM_WIDGET_SUB_ID_THEME.

Reproduce step is changing profile in elementary_config.

src/lib/elm_win.c

index f7a5ffe..fcff212 100644 (file)
@@ -5211,8 +5211,18 @@ static void
 _elm_win_smart_theme(Eo *obj EINA_UNUSED, void *_pd, va_list *list EINA_UNUSED)
 {
    Elm_Win_Smart_Data *sd = _pd;
+   Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+   Eina_Bool int_ret = EINA_FALSE;
+
+   if (ret) *ret = EINA_TRUE;
+
+   eo_do_super(obj, MY_CLASS, elm_wdg_theme(&int_ret));
+   if (!int_ret) return;
+
    sd->focus_highlight.theme_changed = EINA_TRUE;
    _elm_win_focus_highlight_reconfigure_job_start(sd);
+
+   if (ret) *ret = EINA_TRUE;
 }
 
 static void