E/Systray: Add ability for systray to go into illume indicator for Rui.
Basically this checks the gadcon's 'site', if it's Desktop or any toolbars then systray cannot go there. SVN revision: 63069
This commit is contained in:
parent
011b5fcd20
commit
09ec19d893
|
@ -110,6 +110,20 @@ static E_Module *systray_mod = NULL;
|
||||||
static Instance *instance = NULL; /* only one systray ever possible */
|
static Instance *instance = NULL; /* only one systray ever possible */
|
||||||
static char tmpbuf[PATH_MAX]; /* general purpose buffer, just use immediately */
|
static char tmpbuf[PATH_MAX]; /* general purpose buffer, just use immediately */
|
||||||
|
|
||||||
|
static Eina_Bool
|
||||||
|
_systray_site_is_safe(E_Gadcon_Site site)
|
||||||
|
{
|
||||||
|
/* NB: filter out sites we know are not safe for a systray to sit.
|
||||||
|
* This was done so that systray could be put into illume indicator
|
||||||
|
* (or anywhere else really) that is 'safe' for systray to be.
|
||||||
|
* Pretty much, this is anywhere but Desktop and toolbars at the moment */
|
||||||
|
if (e_gadcon_site_is_desktop(site))
|
||||||
|
return EINA_FALSE;
|
||||||
|
else if (e_gadcon_site_is_any_toolbar(site))
|
||||||
|
return EINA_FALSE;
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
_systray_theme_path(void)
|
_systray_theme_path(void)
|
||||||
{
|
{
|
||||||
|
@ -1114,7 +1128,7 @@ static const E_Gadcon_Client_Class _gc_class =
|
||||||
GADCON_CLIENT_CLASS_VERSION, _name,
|
GADCON_CLIENT_CLASS_VERSION, _name,
|
||||||
{
|
{
|
||||||
_gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new, NULL,
|
_gc_init, _gc_shutdown, _gc_orient, _gc_label, _gc_icon, _gc_id_new, NULL,
|
||||||
e_gadcon_site_is_shelf
|
_systray_site_is_safe
|
||||||
},
|
},
|
||||||
E_GADCON_CLIENT_STYLE_INSET
|
E_GADCON_CLIENT_STYLE_INSET
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue