From 582af02062b8fd1f9b89123e7667c8756de46e46 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 Feb 2013 09:54:54 +0000 Subject: [PATCH] add e_popup_object_remove SVN revision: 84097 --- ChangeLog | 1 + NEWS | 1 + src/bin/e_popup.c | 9 +++++++++ src/bin/e_popup.h | 1 + 4 files changed, 12 insertions(+) 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 @@ -293,6 +293,15 @@ e_popup_object_add(E_Popup *pop, Evas_Object *obj) pop->objects = eina_list_append(pop->objects, 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) { 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