Revert "notify: block_events restore previous style when style set failed"
authorJinYong Park <j4939.park@samsung.com>
Thu, 22 Dec 2016 11:53:13 +0000 (20:53 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:11 +0000 (14:37 +0900)
That patch to resolve problem which block events couldn't find correct theme.
But now, find better method, so revert that patch.

This reverts commit 000acee4c8f6fad04be243a1639f219e6d81da38.

Change-Id: I409a30a0d5658ea9588f3c43d2884ba198a90f11
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
src/lib/elm_notify.c

index f49a6d8d479c501fee48dfdee0fcf7f014c98849..6ce0e06100b66b3a34d35a55ce213738a5410b53 100644 (file)
@@ -102,18 +102,9 @@ _block_events_theme_apply(Evas_Object *obj)
 
    const char *style = elm_widget_style_get(obj);
 
-   /* TIZEN_ONLY(20161201): block_events restore previous style when style set failed
    if (!elm_layout_theme_set
        (sd->block_events, "notify", "block_events", style))
      CRI("Failed to set layout!");
-    */
-   const char *prev_style = elm_widget_style_get(sd->block_events);
-   Elm_Theme_Apply ret;
-
-   if (_elm_layout_theme_set_internal
-          (sd->block_events, "notify", "block_events", style) != ELM_THEME_APPLY_SUCCESS)
-     elm_layout_theme_set(sd->block_events, "notify", "block_events", prev_style);
-   /* END */
 }
 
 static void