Better method for show/hide of quickpanel.

SVN revision: 47931
This commit is contained in:
Christopher Michael 2010-04-11 19:02:29 +00:00
parent 2d9d2a8147
commit 8133cc7188
1 changed files with 4 additions and 9 deletions

View File

@ -1,6 +1,5 @@
#include "e_illume_private.h"
#include "e_mod_config.h"
#include "e_mod_quickpanel.h"
/**
* @defgroup E_Illume_Main_Group Illume API Information
@ -941,11 +940,9 @@ e_illume_quickpanel_by_zone_get(E_Zone *zone)
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);
ecore_x_e_illume_quickpanel_state_send(zone->black_win,
ECORE_X_ILLUME_QUICKPANEL_STATE_ON);
}
/**
@ -960,9 +957,7 @@ e_illume_quickpanel_show(E_Zone *zone)
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);
ecore_x_e_illume_quickpanel_state_send(zone->black_win,
ECORE_X_ILLUME_QUICKPANEL_STATE_OFF);
}