aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-19 09:54:54 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-19 09:54:54 +0000
commit582af02062b8fd1f9b89123e7667c8756de46e46 (patch)
treeedd22b83a69ba2f40a5ac2409ea1eb21d49bf2b3
parent803b582904431c8073ed23a08298de576118a7cd (diff)
downloadenlightenment-582af02062b8fd1f9b89123e7667c8756de46e46.tar.gz
enlightenment-582af02062b8fd1f9b89123e7667c8756de46e46.tar.xz
enlightenment-582af02062b8fd1f9b89123e7667c8756de46e46.zip
add e_popup_object_remove
SVN revision: 84097
-rw-r--r--ChangeLog1
-rw-r--r--NEWS1
-rw-r--r--src/bin/e_popup.c9
-rw-r--r--src/bin/e_popup.h1
4 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f5c020cec..d6b58ecd8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
* e_util_size_debug_set now also prints for object show/hide events
* e_gadcon_unpopulate now correctly freezes the container while deleting gadgets
* e_popup is now a wrapper for drawing objects onto the compositor canvas
+ * added functions for noting objects which are part of a popup
* added e_layout functions for returning objects above or below a layout child
* compositor nocomp mode now dynamically enables/disables based on the state and stacking of fullscreen windows and comp objects
diff --git a/NEWS b/NEWS
index e3f16dabe..5054b355b 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ Additions:
* Added function for getting children of e_layout
* added utility function for printing all objects above a given object
* added e_layout functions for returning objects above or below a layout child
+ * added functions for noting objects which are part of a popup
Config:
* Added option for disabling icons in menus
* Added option for disabling pointer warping when performing directional focus changes using winlist
diff --git a/src/bin/e_popup.c b/src/bin/e_popup.c
index b98f41f65..468446cca 100644
--- a/src/bin/e_popup.c
+++ b/src/bin/e_popup.c
@@ -294,6 +294,15 @@ e_popup_object_add(E_Popup *pop, Evas_Object *obj)
}
EAPI void
+e_popup_object_remove(E_Popup *pop, Evas_Object *obj)
+{
+ E_OBJECT_CHECK(pop);
+ E_OBJECT_TYPE_CHECK(pop, E_POPUP_TYPE);
+
+ pop->objects = eina_list_remove(pop->objects, obj);
+}
+
+EAPI void
e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data)
{
E_OBJECT_CHECK(pop);
diff --git a/src/bin/e_popup.h b/src/bin/e_popup.h
index c3e034a2f..479d8e1d5 100644
--- a/src/bin/e_popup.h
+++ b/src/bin/e_popup.h
@@ -47,6 +47,7 @@ EAPI void e_popup_ignore_events_set(E_Popup *pop, int ignore);
EAPI void e_popup_layer_set(E_Popup *pop, E_Comp_Canvas_Layer comp_layer, E_Layer layer);
EAPI void e_popup_name_set(E_Popup *pop, const char *name);
EAPI void e_popup_object_add(E_Popup *pop, Evas_Object *obj);
+EAPI void e_popup_object_remove(E_Popup *pop, Evas_Object *obj);
EAPI void e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data);
#endif
#endif