2012-12-18 Chueon Park (Hermet)
* Let image update right now if the image preloading is disabled.
+
+2012-12-18 Gustavo Sverzut Barbieri (k-s)
+
+ * elm_plug now emits "image,resized" on server-side changes.
+ * elm_plug typo fixed "image.deleted" to "image,deleted" ('.' -> ',')
* Add window profile set/get API in elm_win
* Add elm_sys_notify.[ch]
* Add elm_need_elocation() and Elocation.h support with ELM_ELOCATION macro to integrate elocation.
+ * Add elm_plug signals "image,deleted" (fixed typo) and "image,resized".
Improvements:
* Fix the naviframe to not have crash even if user deletes the naviframe in the transition finished cb.
* Fix Don't elm_transit image animation use the image preloading to avoid image flickering.
* Fix the image to show the image right now if the image preloading is disabled.
+ * Fix typo from elm_plug signal "image.deleted", should be "image,deleted".
Removals:
return;
}
- evas_object_smart_callback_add(plug, "image.deleted", cb_plug_disconnected, NULL);
+ evas_object_smart_callback_add(plug, "image,deleted", cb_plug_disconnected, NULL);
evas_object_smart_callback_add(plug, "image,resized", cb_plug_resized, NULL);
evas_object_resize(plug, 380, 500);
static const char PLUG_KEY[] = "__Plug_Ecore_Evas";
static const char SIG_CLICKED[] = "clicked";
-static const char SIG_IMAGE_DELETED[] = "image.deleted";
+static const char SIG_IMAGE_DELETED[] = "image,deleted";
static const char SIG_IMAGE_RESIZED[] = "image,resized";
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CLICKED, ""},
static void
_elm_plug_disconnected(Ecore_Evas *ee)
{
- Evas_Object *plug = NULL;
-
- if (!ee) return;
- plug = ecore_evas_data_get(ee, PLUG_KEY);
- if (!plug) return;
+ Evas_Object *plug = ecore_evas_data_get(ee, PLUG_KEY);
+ EINA_SAFETY_ON_NULL_RETURN(plug);
evas_object_smart_callback_call(plug, SIG_IMAGE_DELETED, NULL);
+ /* TODO: was a typo. Deprecated, remove in future releases: */
+ evas_object_smart_callback_call(plug, "image.deleted", NULL);
}
static void
* This widget emits the following signals:
* @li "clicked": the user clicked the image (press/release). The @c
* event parameter of the callback will be @c NULL.
- * @li "image.deleted": the server side was deleted. The @c event
+ * @li "image,deleted": the server side was deleted. The @c event
* parameter of the callback will be @c NULL.
* @li "image,resized": the server side was resized. The @c event parameter of
* the callback will be @c Evas_Coord_Size (two integers).