forked from enlightenment/enlightenment
fix segv if no per-zeon-config found!
SVN revision: 45158
This commit is contained in:
parent
4f9aead4e7
commit
d4c9dd55e6
|
@ -236,4 +236,5 @@ e_illume_zone_config_get(int id)
|
||||||
cz->mode.side = 0;
|
cz->mode.side = 0;
|
||||||
il_cfg->policy.zones = eina_list_append(il_cfg->policy.zones, cz);
|
il_cfg->policy.zones = eina_list_append(il_cfg->policy.zones, cz);
|
||||||
e_mod_config_save();
|
e_mod_config_save();
|
||||||
|
return cz;
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,15 +91,19 @@ e_modapi_init(E_Module *m)
|
||||||
if (!(qp = e_quickpanel_new(zone))) continue;
|
if (!(qp = e_quickpanel_new(zone))) continue;
|
||||||
quickpanels = eina_list_append(quickpanels, qp);
|
quickpanels = eina_list_append(quickpanels, qp);
|
||||||
|
|
||||||
|
mode = ECORE_X_ILLUME_MODE_SINGLE;
|
||||||
cz = e_illume_zone_config_get(zone->id);
|
cz = e_illume_zone_config_get(zone->id);
|
||||||
if (cz->mode.dual == 0)
|
if (cz)
|
||||||
mode = ECORE_X_ILLUME_MODE_SINGLE;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (cz->mode.side == 0)
|
if (cz->mode.dual == 0)
|
||||||
mode = ECORE_X_ILLUME_MODE_DUAL_TOP;
|
mode = ECORE_X_ILLUME_MODE_SINGLE;
|
||||||
else
|
else
|
||||||
mode = ECORE_X_ILLUME_MODE_DUAL_LEFT;
|
{
|
||||||
|
if (cz->mode.side == 0)
|
||||||
|
mode = ECORE_X_ILLUME_MODE_DUAL_TOP;
|
||||||
|
else
|
||||||
|
mode = ECORE_X_ILLUME_MODE_DUAL_LEFT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ecore_x_e_illume_mode_set(zone->black_win, mode);
|
ecore_x_e_illume_mode_set(zone->black_win, mode);
|
||||||
zones[i++] = zone->black_win;
|
zones[i++] = zone->black_win;
|
||||||
|
|
Loading…
Reference in New Issue