add e_gadcon_repopulate
this allows unpopulate+repopulate calls to occur while the layout is frozen, providing a substantial speedup
This commit is contained in:
parent
7128c8fbe6
commit
19f79acb45
|
@ -4,6 +4,7 @@
|
|||
* added E_LIST_REVERSE_FREE macro
|
||||
* added e_object_ref_debug_set
|
||||
* E_FN_DEL macro renamed to E_FREE_FUNC with param order swapped for consistency
|
||||
* added e_gadcon_repopulate
|
||||
|
||||
2013-02-20 Mike Blumenkrantz
|
||||
|
||||
|
|
1
NEWS
1
NEWS
|
@ -32,6 +32,7 @@ Additions:
|
|||
* added functions for noting objects which are part of a popup
|
||||
* added E_LIST_REVERSE_FREE macro
|
||||
* added e_object_ref_debug_set
|
||||
* added e_gadcon_repopulate
|
||||
Config:
|
||||
* Added option for disabling icons in menus
|
||||
* Added option for disabling pointer warping when performing directional focus changes using winlist
|
||||
|
|
|
@ -614,6 +614,17 @@ e_gadcon_unpopulate(E_Gadcon *gc)
|
|||
if (gc->o_container) e_gadcon_layout_thaw(gc->o_container);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_gadcon_repopulate(E_Gadcon *gc)
|
||||
{
|
||||
E_OBJECT_CHECK(gc);
|
||||
E_OBJECT_TYPE_CHECK(gc, E_GADCON_TYPE);
|
||||
if (gc->o_container) e_gadcon_layout_freeze(gc->o_container);
|
||||
e_gadcon_unpopulate(gc);
|
||||
e_gadcon_populate(gc);
|
||||
if (gc->o_container) e_gadcon_layout_thaw(gc->o_container);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_gadcon_populate_class(E_Gadcon *gc, const E_Gadcon_Client_Class *cc)
|
||||
{
|
||||
|
|
|
@ -292,6 +292,7 @@ EAPI void e_gadcon_populate_callback_set(E_Gadcon *gc, void (
|
|||
EAPI void e_gadcon_layout_policy_set(E_Gadcon *gc, E_Gadcon_Layout_Policy layout_policy);
|
||||
EAPI Eina_Bool e_gadcon_populate(E_Gadcon *gc);
|
||||
EAPI void e_gadcon_unpopulate(E_Gadcon *gc);
|
||||
EAPI void e_gadcon_repopulate(E_Gadcon *gc);
|
||||
EAPI void e_gadcon_populate_class(E_Gadcon *gc, const E_Gadcon_Client_Class *cc);
|
||||
EAPI void e_gadcon_orient(E_Gadcon *gc, E_Gadcon_Orient orient);
|
||||
EAPI void e_gadcon_edit_begin(E_Gadcon *gc);
|
||||
|
|
Loading…
Reference in New Issue