Add elm_scale_get and elm_scale_set
authorRusty Lynch <rusty.lynch@intel.com>
Wed, 21 Nov 2012 22:17:50 +0000 (14:17 -0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 4 Sep 2014 12:12:40 +0000 (14:12 +0200)
In order to run unmodified Tizen 2.0 applications on a newer elementary
library then we need to add back the elm_scale_get and set methods.

src/lib/elm_config.c
src/lib/elm_config.h

index 44fbc2e88ec569caea6e8c36eac31814aca28e9a..564a8b9ff997d475e5d6d448f74401c8799cb977 100644 (file)
@@ -2366,6 +2366,23 @@ elm_config_scale_set(double scale)
    _elm_rescale();
 }
 
+/*
+ * Add backwards compatability implementation for elm_scale_get and elm_scale_set
+ * to allow running unmodified Tizen applications on a new drop of elementary
+ */
+
+EAPI double
+elm_scale_get(void) 
+{ 
+   return elm_config_scale_get(); 
+}
+
+EAPI void
+elm_scale_set(double scale) 
+{ 
+   elm_config_scale_set(scale);
+}
+
 EAPI Eina_Bool
 elm_config_password_show_last_get(void)
 {
index ed2dfecd5c1da11f88dbd721802dc7cb36b9b925..e1eb451e6ace7dd80e8154101a841df122c4a6e4 100644 (file)
@@ -706,6 +706,13 @@ EAPI double elm_config_scale_get(void);
  */
 EAPI void   elm_config_scale_set(double scale);
 
+/*
+ * Add backwards compatability implementation for elm_scale_get and elm_scale_set
+ * to allow running unmodified Tizen applications on a new drop of elementary
+ */
+EAPI double elm_scale_get(void);
+EAPI void   elm_scale_set(double scale);
+
 /**
  * @defgroup Password_last_show Password show last
  * @ingroup Elementary