summaryrefslogtreecommitdiff
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)
add e_popup_object_remove
SVN revision: 84097
Diffstat (limited to '')
-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 @@
11 * e_util_size_debug_set now also prints for object show/hide events 11 * e_util_size_debug_set now also prints for object show/hide events
12 * e_gadcon_unpopulate now correctly freezes the container while deleting gadgets 12 * e_gadcon_unpopulate now correctly freezes the container while deleting gadgets
13 * e_popup is now a wrapper for drawing objects onto the compositor canvas 13 * e_popup is now a wrapper for drawing objects onto the compositor canvas
14 * added functions for noting objects which are part of a popup
14 * added e_layout functions for returning objects above or below a layout child 15 * added e_layout functions for returning objects above or below a layout child
15 * compositor nocomp mode now dynamically enables/disables based on the state and stacking of fullscreen windows and comp objects 16 * compositor nocomp mode now dynamically enables/disables based on the state and stacking of fullscreen windows and comp objects
16 17
diff --git a/NEWS b/NEWS
index e3f16dabe..5054b355b 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ Additions:
29 * Added function for getting children of e_layout 29 * Added function for getting children of e_layout
30 * added utility function for printing all objects above a given object 30 * added utility function for printing all objects above a given object
31 * added e_layout functions for returning objects above or below a layout child 31 * added e_layout functions for returning objects above or below a layout child
32 * added functions for noting objects which are part of a popup
32 Config: 33 Config:
33 * Added option for disabling icons in menus 34 * Added option for disabling icons in menus
34 * Added option for disabling pointer warping when performing directional focus changes using winlist 35 * 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)
294} 294}
295 295
296EAPI void 296EAPI void
297e_popup_object_remove(E_Popup *pop, Evas_Object *obj)
298{
299 E_OBJECT_CHECK(pop);
300 E_OBJECT_TYPE_CHECK(pop, E_POPUP_TYPE);
301
302 pop->objects = eina_list_remove(pop->objects, obj);
303}
304
305EAPI void
297e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data) 306e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data)
298{ 307{
299 E_OBJECT_CHECK(pop); 308 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);
47EAPI void e_popup_layer_set(E_Popup *pop, E_Comp_Canvas_Layer comp_layer, E_Layer layer); 47EAPI void e_popup_layer_set(E_Popup *pop, E_Comp_Canvas_Layer comp_layer, E_Layer layer);
48EAPI void e_popup_name_set(E_Popup *pop, const char *name); 48EAPI void e_popup_name_set(E_Popup *pop, const char *name);
49EAPI void e_popup_object_add(E_Popup *pop, Evas_Object *obj); 49EAPI void e_popup_object_add(E_Popup *pop, Evas_Object *obj);
50EAPI void e_popup_object_remove(E_Popup *pop, Evas_Object *obj);
50EAPI void e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data); 51EAPI void e_popup_autoclose(E_Popup *pop, E_Popup_Key_Cb cb, const void *data);
51#endif 52#endif
52#endif 53#endif