Resolve conflicts. conform, win, cnp, border.edc 80/50880/1
authorDuna Oh <duna.oh@samsung.com>
Tue, 3 Nov 2015 07:24:21 +0000 (16:24 +0900)
committerDuna Oh <duna.oh@samsung.com>
Tue, 3 Nov 2015 07:25:50 +0000 (16:25 +0900)
Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: I96b1b3395b5e8c216493c799810be9ea74333833

src/lib/elm_cnp.c
src/lib/elm_conform.c
src/lib/elm_win.c
src/lib/elm_win.eo

index a60d261e3c421cf50df54a7bc843728d66310f62..2051fd1ec6c836e3e59234bb339f9824090a546f 100644 (file)
@@ -3125,10 +3125,7 @@ _wl_dnd_drop(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
      }
 
    ecore_wl_dnd_drag_end(ecore_wl_input_get());
-<<<<<<< HEAD
 
-=======
->>>>>>> opensource/master
    return ECORE_CALLBACK_PASS_ON;
 }
 
index 5e7ffbbf3934a86787941d6f39d844573368bd94..761571ba55f396266c70819b91ccf2ca8d89442e 100644 (file)
@@ -911,6 +911,11 @@ _on_conformant_changed(void *data,
    part_type = (ELM_CONFORMANT_INDICATOR_PART |
                 ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
 
+   ELM_CONFORMANT_DATA_GET(data, sd);
+
+   /* object is already freed */
+   if (!sd) return;
+
    _conformant_part_sizing_eval(data, part_type);
 }
 //
index 7cc6f8c57f064ebf115021de060200e8c9b8e69d..bfc34356785912a939153db942ef44b721b2c86e 100644 (file)
@@ -178,11 +178,8 @@ struct _Elm_Win_Data
    const char  *title;
    const char  *icon_name;
    const char  *role;
-<<<<<<< HEAD
    const char  *frame_style;
-=======
    Eina_Stringshare *name;
->>>>>>> opensource/master
 
    Evas_Object *main_menu;
 
@@ -251,12 +248,9 @@ static const char SIG_INDICATOR_PROP_CHANGED[] = "indicator,prop,changed";
 static const char SIG_ROTATION_CHANGED[] = "rotation,changed";
 static const char SIG_PROFILE_CHANGED[] = "profile,changed";
 static const char SIG_WM_ROTATION_CHANGED[] = "wm,rotation,changed";
-<<<<<<< HEAD
 static const char SIG_THEME_CHANGED[] = "theme,changed";
 static const char SIG_CONFORMANT_CHANGED[] = "conformant,changed";
 static const char SIG_AUX_HINT_ALLOWED[] = "aux,hint,allowed";
-=======
->>>>>>> opensource/master
 
 static const Evas_Smart_Cb_Description _smart_callbacks[] = {
    {SIG_DELETE_REQUEST, ""},
@@ -2023,11 +2017,8 @@ _elm_win_evas_object_smart_del(Eo *obj, Elm_Win_Data *sd)
    eina_stringshare_del(sd->title);
    eina_stringshare_del(sd->icon_name);
    eina_stringshare_del(sd->role);
-<<<<<<< HEAD
    eina_stringshare_del(sd->frame_style);
-=======
    eina_stringshare_del(sd->name);
->>>>>>> opensource/master
    evas_object_del(sd->icon);
    evas_object_del(sd->main_menu);
 
@@ -3893,22 +3884,8 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
 #endif
 
    /* do not append to list; all windows render as black rects */
-<<<<<<< HEAD
-   if (type == ELM_WIN_FAKE) return;
-   _elm_win_list = eina_list_append(_elm_win_list, obj);
-   _elm_win_count++;
 
    sd->frame_style = eina_stringshare_add("default");
-   if ((engine) && ((!strcmp(engine, ELM_SOFTWARE_FB)) || (!strcmp(engine, ELM_DRM))))
-     {
-        TRAP(sd, fullscreen_set, 1);
-     }
-   else if ((type != ELM_WIN_INLINED_IMAGE) &&
-            ((engine) &&
-             ((!strcmp(engine, ELM_WAYLAND_SHM) ||
-              (!strcmp(engine, ELM_WAYLAND_EGL))))))
-     _elm_win_frame_add(sd, sd->frame_style);
-=======
    if (type != ELM_WIN_FAKE)
      {
         _elm_win_list = eina_list_append(_elm_win_list, obj);
@@ -3922,8 +3899,7 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
                  ((engine) &&
                   ((!strcmp(engine, ELM_WAYLAND_SHM) ||
                    (!strcmp(engine, ELM_WAYLAND_EGL))))))
-          _elm_win_frame_add(sd, "default");
->>>>>>> opensource/master
+          _elm_win_frame_add(sd, sd->frame_style);
 
         if (_elm_config->focus_highlight_enable)
           elm_win_focus_highlight_enabled_set(obj, EINA_TRUE);
@@ -3988,6 +3964,9 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
    if (_elm_config->atspi_mode)
      elm_interface_atspi_window_created_signal_emit(obj);
 
+   if(_elm_config->win_no_border)
+     _elm_win_borderless_set(obj, sd, EINA_TRUE);
+
    evas_object_show(sd->edje);
 
    eo_do(obj, eo_event_callback_add(EO_EV_CALLBACK_ADD, _cb_added, sd),
@@ -4000,13 +3979,6 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
    return obj;
 }
 
-<<<<<<< HEAD
-
-   if(_elm_config->win_no_border)
-     _elm_win_borderless_set(obj, sd, EINA_TRUE);
-
-   evas_object_show(sd->edje);
-=======
 EOLIAN static Eo *
 _elm_win_eo_base_finalize(Eo *obj, Elm_Win_Data *_pd)
 {
@@ -4016,7 +3988,6 @@ _elm_win_eo_base_finalize(Eo *obj, Elm_Win_Data *_pd)
         eo_do_super(obj, MY_CLASS, obj = eo_finalize());
      }
    return obj;
->>>>>>> opensource/master
 }
 
 EOLIAN static Eo *
@@ -5097,8 +5068,7 @@ _elm_win_indicator_mode_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Elm_Win_Indic
             (sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
      }
 #endif
-<<<<<<< HEAD
-#if HAVE_ELEMENTARY_WAYLAND
+#ifdef HAVE_ELEMENTARY_WAYLAND
    _elm_win_wlwindow_get(sd);
    if (sd->wl.win)
      {
@@ -5110,11 +5080,8 @@ _elm_win_indicator_mode_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Elm_Win_Indic
             (sd->wl.win, ECORE_WL_INDICATOR_STATE_OFF);
      }
 #endif
-   evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
-=======
    eo_do(obj, eo_event_callback_call
      (ELM_WIN_EVENT_INDICATOR_PROP_CHANGED, NULL));
->>>>>>> opensource/master
 }
 
 EOLIAN static Elm_Win_Indicator_Mode
@@ -5143,8 +5110,7 @@ _elm_win_indicator_opacity_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Elm_Win_In
             (sd->x.xwin, ECORE_X_ILLUME_INDICATOR_TRANSPARENT);
      }
 #endif
-<<<<<<< HEAD
-#if HAVE_ELEMENTARY_WAYLAND
+#ifdef HAVE_ELEMENTARY_WAYLAND
    _elm_win_wlwindow_get(sd);
    if (sd->wl.win)
      {
@@ -5159,11 +5125,8 @@ _elm_win_indicator_opacity_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Elm_Win_In
             (sd->wl.win, ECORE_WL_INDICATOR_TRANSPARENT);
      }
 #endif
-   evas_object_smart_callback_call(obj, SIG_INDICATOR_PROP_CHANGED, NULL);
-=======
    eo_do(obj, eo_event_callback_call
      (ELM_WIN_EVENT_INDICATOR_PROP_CHANGED, NULL));
->>>>>>> opensource/master
 }
 
 EOLIAN static Elm_Win_Indicator_Opacity_Mode
index 29fe8304701f2976c6154b1b62170a9729e975ea..c70de067a965d0fb4e6841602cfa9ed075927464 100644 (file)
@@ -413,32 +413,21 @@ class Elm.Win (Elm.Widget, Elm_Interface_Atspi_Window,
             borderless: bool; [[If true, the window is borderless.]]
          }
       }
-<<<<<<< HEAD
-      border_style {
+      @property border_style {
          set {
-            /*@
-            Set the border style of a window.
+            [[Set the border style of a window.
 
-            Sets the specific style of border to decorate window.
-
-            @ingroup Win */
+              Sets the specific style of border to decorate window.
+            ]]
          }
          get {
-            /*@
-            Get the border style of a window.
-
-            @return The style set
-
-            @ingroup Win */
+            [[Get the border style of a window.]]
          }
          values {
-            const(char)* style; /*@ The style to set */
+            style: const(char)* @nullable; [[The style or $null if none.]]
          }
       }
-      screen_constrain {
-=======
       @property screen_constrain {
->>>>>>> opensource/master
          set {
             [[Constrain the maximum width and height of a window to the
               width and height of its screen.