elm_win: modified code for elm_win_type_set 73/80773/2 accepted/tizen/common/20160721.180026 accepted/tizen/ivi/20160721.091527 accepted/tizen/mobile/20160721.091653 accepted/tizen/tv/20160721.091507 accepted/tizen/wearable/20160721.091435 submit/tizen/20160721.024714
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 20 Jul 2016 06:27:42 +0000 (15:27 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 21 Jul 2016 00:56:33 +0000 (17:56 -0700)
we changed code to allow changing window type after initializing elm_win

Change-Id: I404322b0dd1e3dff4c9b8e858d1124778972e48f

src/lib/elm_win.c

index 187531e..43cbd17 100644 (file)
@@ -4477,6 +4477,12 @@ _elm_win_type_set(Eo *obj, Elm_Win_Data *sd, Elm_Win_Type type)
    Eina_Bool finalized;
    if (eo_do_ret(obj, finalized, eo_finalized_get()))
      {
+// TIZEN_ONLY(20160720): Allowed changing type after initializing
+#ifdef HAVE_ELEMENTARY_WAYLAND
+        sd->type = type;
+        _elm_win_wlwin_update(sd);
+#endif
+//
         ERR("This function is only allowed during construction.");
         return;
      }