remove candidate rotation code in update_ise_geometry, Add candidate close code for... 17/17517/1
authorJuHyun Kim <jh8212.kim@samsung.com>
Fri, 23 Aug 2013 02:20:50 +0000 (11:20 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 7 Mar 2014 02:24:12 +0000 (11:24 +0900)
Change-Id: I54945ea15d5fbd49445d49cb6d9dc0d815a85e1b

ism/extras/efl_panel/isf_panel_efl.cpp

index c913b09..f84177b 100644 (file)
@@ -128,6 +128,7 @@ static void       ui_settle_candidate_window           (void);
 static void       ui_candidate_show                    (bool bSetVirtualKbd = true);
 static void       ui_create_candidate_window           (void);
 static void       update_table                         (int table_type, const LookupTable &table);
+static void       ui_candidate_window_close_button_cb  (void *data, Evas *e, Evas_Object *button, void *event_info);
 
 static bool       check_wm_ready                       (void);
 static bool       check_system_ready                   (void);
@@ -993,6 +994,8 @@ static void ui_candidate_window_rotate (int angle)
     if (!_candidate_window)
         return;
 
+    ui_candidate_window_close_button_cb (NULL, NULL, NULL, NULL);
+
     if (angle == 90 || angle == 270) {
         _candidate_scroll_width = _candidate_scroll_width_max;
         ui_candidate_window_resize (_candidate_land_width, _candidate_land_height_min);
@@ -2545,12 +2548,8 @@ static void slot_update_ise_geometry (int x, int y, int width, int height)
     _ise_width  = width;
     _ise_height = height;
 
-    if (_candidate_window) {
-        int angle = efl_get_angle_for_app_window ();
-        if (_candidate_angle != angle) {
-            _candidate_angle = angle;
-            ui_candidate_window_rotate (angle);
-        } else if (old_height != height) {
+    if (_candidate_window && evas_object_visible_get (_candidate_window)) {
+        if (old_height != height) {
             ui_settle_candidate_window ();
         }
     }