popup: fix theme apply problem when font/language is changed 01/162101/3
authorJinYong Park <j4939.park@samsung.com>
Wed, 29 Nov 2017 06:14:59 +0000 (15:14 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 3 Jan 2018 07:12:57 +0000 (07:12 +0000)
@tizen_fix

original patch : https://review.tizen.org/gerrit/#/c/92794/

Change-Id: I9610785e21b17da310ca3841a3be3c0f03dd4a6d
Signed-off-by: JinYong Park <j4939.park@samsung.com>
src/lib/elementary/elm_notify.c
src/lib/elementary/elm_widget_notify.h

index b6c332b..405c29a 100644 (file)
@@ -157,6 +157,14 @@ _elm_notify_elm_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd)
 
    _sizing_eval(obj);
 
+   /* TIZEN_ONLY(20161018): fix theme apply problem by font/language change */
+   if (sd->show_finished)
+   {
+      elm_layout_signal_emit(sd->block_events, "elm,state,visible", "elm");
+      edje_object_signal_emit(sd->notify, "elm,state,visible", "elm");
+   }
+   /* END */
+
    return int_ret;
 }
 
@@ -429,6 +437,8 @@ _show_finished_cb(void *data,
                   const char *emission EINA_UNUSED,
                   const char *source EINA_UNUSED)
 {
+   ELM_NOTIFY_DATA_GET(data, sd);
+   sd->show_finished = EINA_TRUE;
    efl_event_callback_legacy_call(data, ELM_NOTIFY_EVENT_SHOW_FINISHED, NULL);
 }
 /* END */
@@ -445,6 +455,9 @@ _hide_finished_cb(void *data,
    if (!sd->allow_events) evas_object_hide(sd->block_events);
    efl_gfx_visible_set(efl_super(data, MY_CLASS), EINA_FALSE);
    efl_event_callback_legacy_call(data, ELM_NOTIFY_EVENT_DISMISSED, NULL);
+   /* TIZEN_ONLY(20161018): fix theme apply problem by font/language change */
+   sd->show_finished = EINA_FALSE;
+   /* END */
 }
 
 EOLIAN static void
@@ -455,6 +468,10 @@ _elm_notify_efl_canvas_group_group_add(Eo *obj, Elm_Notify_Data *priv)
 
    priv->allow_events = EINA_TRUE;
 
+   /* TIZEN_ONLY(20161018): fix theme apply problem by font/language change */
+   priv->show_finished = EINA_FALSE;
+   /* END */
+
    priv->notify = edje_object_add(evas_object_evas_get(obj));
    evas_object_smart_member_add(priv->notify, obj);
 
index 71ffd18..8684834 100644 (file)
@@ -38,6 +38,10 @@ struct _Elm_Notify_Data
    Eina_Bool                allow_events : 1;
    Eina_Bool                had_hidden : 1;
    Eina_Bool                in_timeout : 1;
+
+   /* TIZEN_ONLY(20161018): fix theme apply problem by font/language change */
+   Eina_Bool                show_finished;
+   /* END */
 };
 
 /**