From: Christopher Michael Date: Sun, 11 Apr 2010 16:24:17 +0000 (+0000) Subject: Add functions to allow quickpanel to be shown/hidden at programmers request. X-Git-Tag: submit/efl/20131021.015651~7857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d9d2a814794fc6075fe5710eed704e360b81840;p=platform%2Fupstream%2Fenlightenment.git Add functions to allow quickpanel to be shown/hidden at programmers request. SVN revision: 47930 --- diff --git a/src/modules/illume2/e_illume.c b/src/modules/illume2/e_illume.c index f4dc05ca11..0d506b0430 100644 --- a/src/modules/illume2/e_illume.c +++ b/src/modules/illume2/e_illume.c @@ -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); +} diff --git a/src/modules/illume2/e_illume.h b/src/modules/illume2/e_illume.h index 0701d065cb..3d3277d8b1 100644 --- a/src/modules/illume2/e_illume.h +++ b/src/modules/illume2/e_illume.h @@ -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