Add functions to allow quickpanel to be shown/hidden at programmers request.
authorChristopher Michael <cpmichael1@comcast.net>
Sun, 11 Apr 2010 16:24:17 +0000 (16:24 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Sun, 11 Apr 2010 16:24:17 +0000 (16:24 +0000)
SVN revision: 47930

src/modules/illume2/e_illume.c
src/modules/illume2/e_illume.h

index f4dc05ca11525cdbf652fbc648455c2ea4dbeaca..0d506b0430de194e2c4941cc8cc77dcc39151852 100644 (file)
@@ -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);
+}
index 0701d065cb7c6d5eba1c86ede2d9442b5ee454f0..3d3277d8b123b64cd06f3291b46f75131c9fb3db 100644 (file)
@@ -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