forked from enlightenment/enlightenment
Add functions to allow quickpanel to be shown/hidden at programmers request.
SVN revision: 47930
This commit is contained in:
parent
6829fa5012
commit
2d9d2a8147
|
@ -1,5 +1,6 @@
|
|||
#include "e_illume_private.h"
|
||||
#include "e_mod_config.h"
|
||||
#include "e_mod_quickpanel.h"
|
||||
|
||||
/**
|
||||
* @defgroup E_Illume_Main_Group Illume API Information
|
||||
|
@ -927,3 +928,41 @@ e_illume_quickpanel_by_zone_get(E_Zone *zone)
|
|||
/* return a fallback */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the Illume Quickpanel on a given zone.
|
||||
*
|
||||
* @param zone The zone on which to show the Quickpanel.
|
||||
*
|
||||
* @note If @p zone is NULL then this function will return.
|
||||
*
|
||||
* @ingroup E_Illume_Quickpanel_Group
|
||||
*/
|
||||
EAPI void
|
||||
e_illume_quickpanel_show(E_Zone *zone)
|
||||
{
|
||||
E_Illume_Quickpanel *qp;
|
||||
|
||||
if (!zone) return;
|
||||
if (!(qp = e_illume_quickpanel_by_zone_get(zone))) return;
|
||||
e_mod_quickpanel_show(qp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide the Illume Quickpanel on a given zone.
|
||||
*
|
||||
* @param zone The zone on which to hide the Quickpanel.
|
||||
*
|
||||
* @note If @p zone is NULL then this function will return.
|
||||
*
|
||||
* @ingroup E_Illume_Quickpanel_Group
|
||||
*/
|
||||
EAPI void
|
||||
e_illume_quickpanel_hide(E_Zone *zone)
|
||||
{
|
||||
E_Illume_Quickpanel *qp;
|
||||
|
||||
if (!zone) return;
|
||||
if (!(qp = e_illume_quickpanel_by_zone_get(zone))) return;
|
||||
e_mod_quickpanel_hide(qp);
|
||||
}
|
||||
|
|
|
@ -366,5 +366,7 @@ EAPI Eina_List *e_illume_border_home_borders_get(E_Zone *zone);
|
|||
|
||||
/* quickpanel functions */
|
||||
EAPI E_Illume_Quickpanel *e_illume_quickpanel_by_zone_get(E_Zone *zone);
|
||||
EAPI void e_illume_quickpanel_show(E_Zone *zone);
|
||||
EAPI void e_illume_quickpanel_hide(E_Zone *zone);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue