Changes by ACR
authorKyuho Jo <kyuho.jo@samsung.com>
Mon, 4 May 2015 02:22:25 +0000 (11:22 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 7 May 2015 04:23:22 +0000 (13:23 +0900)
Change-Id: I37f29e14e6a8d017d02c562e1498f0ee6c7b5175
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
packaging/libwidget_viewer.spec
widget_viewer_evas/include/widget_viewer_evas.h
widget_viewer_evas/src/widget_viewer_evas.c

index f082eb4..b8cf41d 100644 (file)
@@ -2,7 +2,7 @@
 
 Name: libwidget_viewer
 Summary: Library for developing the application
-Version: 1.1.3
+Version: 1.1.4
 Release: 1
 Group: HomeTF/widget
 License: Flora License, Version 1.1
index cd5abca..d45dd0d 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef __WIDGET_VIEWER_EVAS_H
 #define __WIDGET_VIEWER_EVAS_H
 
+#include <tizen_type.h>
+
 #include "widget_service.h"
 
 #ifdef __cplusplus
@@ -325,14 +327,14 @@ extern void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget);
  * @brief Check whether the widget is faulted.
  * @since_tizen 2.3.1
  * @param[in] widget a widget object
- * @return faulted state of the widget
- * @retval 1 for faulted state
- * @retval 0 for not faulted state
+ * @return faulted state of the widget and you can get the result state of this function by using get_last_result()
+ * @retval true for faulted state
+ * @retval false for not faulted state
  */
-extern int widget_viewer_evas_is_faulted(Evas_Object *widget);
+extern bool widget_viewer_evas_is_faulted(Evas_Object *widget);
 
 /**
- * @brief Fixes visibility of the widget
+ * @brief Freezes visibility of the widget
  * @details If you don't want to change the visibility automatically, freeze it.\n
  *        The visibility will not be changed even though a box disappeared(hidden)/displayed(shown) from/on the screen.
  * @since_tizen 2.3.1
@@ -346,7 +348,7 @@ extern int widget_viewer_evas_is_faulted(Evas_Object *widget);
 extern int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibility_status_e status);
 
 /**
- * @brief Unfixes visibility of the widget
+ * @brief Thaws visibility of the widget
  * @details If you want to let the visibility change automatically again, call this function.
  * @since_tizen 2.3.1
  * @param[in] widget a widget object
@@ -357,24 +359,24 @@ extern int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visi
 extern int widget_viewer_evas_thaw_visibility(Evas_Object *widget);
 
 /**
- * @brief Get the fixed state of visibility option.
+ * @brief Get the frozen state of visibility option.
  * @since_tizen 2.3.1
  * @param[in] widget a widget object
- * @return fixed state of visibility
- * @retval 1 for fixed state
- * @retval 0 for not fixed state
+ * @return fixed state of visibility and you can get the result state of this function by using get_last_result()
+ * @retval true for frozen state
+ * @retval false for not frozen state
  */
-extern int widget_viewer_evas_get_freeze_visibility(Evas_Object *widget);
+extern bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget);
 
 /**
  * @brief Validate the object, whether it is a widget object or not
  * @since_tizen 2.3.1
  * @param[in] widget a widget object
- * @return result of validation
- * @retval 1 this is a widget
- * @retval 0 this is not a widget
+ * @return result of validation and you can get the result state of this function by using get_last_result()
+ * @retval true this is a widget
+ * @retval false this is not a widget
  */
-extern int widget_viewer_evas_is_widget(Evas_Object *widget);
+extern bool widget_viewer_evas_is_widget(Evas_Object *widget);
 
 /**
  * @brief Before delete a widget, set the deletion mode
index 0adbf6b..0951d4b 100644 (file)
@@ -6934,7 +6934,7 @@ EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
        }
 }
 
-EAPI int widget_viewer_evas_is_faulted(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
 {
        struct widget_data *data;
 
@@ -6948,7 +6948,7 @@ EAPI int widget_viewer_evas_is_faulted(Evas_Object *widget)
                return 0;
        }
 
-       return data->is.field.faulted;
+       return (bool)data->is.field.faulted;
 }
 
 EAPI int widget_viewer_evas_set_raw_event_callback(widget_evas_raw_event_type_e type, raw_event_cb cb, void *data)
@@ -7047,7 +7047,7 @@ EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
        return WIDGET_ERROR_NONE;
 }
 
-EAPI int widget_viewer_evas_get_freeze_visibility(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
 {
        struct widget_data *data;
 
@@ -7062,7 +7062,7 @@ EAPI int widget_viewer_evas_get_freeze_visibility(Evas_Object *widget)
                return 0;
        }
 
-       return data->is.field.freeze_visibility;
+       return (bool)data->is.field.freeze_visibility;
 }
 
 EAPI int widget_viewer_evas_dump_to_file(Evas_Object *widget, const char *filename)
@@ -7100,7 +7100,7 @@ EAPI int widget_viewer_evas_dump_to_file(Evas_Object *widget, const char *filena
        return WIDGET_ERROR_NONE;
 }
 
-EAPI int widget_viewer_evas_is_widget(Evas_Object *widget)
+EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
 {
        struct widget_data *data;
 
@@ -7111,10 +7111,10 @@ EAPI int widget_viewer_evas_is_widget(Evas_Object *widget)
        data = get_smart_data(widget);
        if (!data) {
                ErrPrint("Invalid object\n");
-               return 0;
+               return false;
        }
 
-       return 1;
+       return true;
 }
 
 EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)