<commit_before>#include "e.h"
#include "e_mod_main.h"
#include "e_mod_sft_win.h"

/* local variables */
static Eina_List *swins = NULL;

/* external variables */
const char *_sft_mod_dir = NULL;

EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume-Softkey" };

EAPI void *
e_modapi_init(E_Module *m) 
{
   E_Manager *man;
   Eina_List *l;

   /* setup variable to hold module directory */
   _sft_mod_dir = eina_stringshare_add(m->dir);

   /* loop through the managers (root windows) */
   EINA_LIST_FOREACH(e_manager_list(), l, man) 
     {
        E_Container *con;
        Eina_List *cl;

        /* loop through the containers */
        EINA_LIST_FOREACH(man->containers, cl, con) 
          {
             E_Zone *zone;
             Eina_List *zl;

             /* for each zone in this container, create a new softkey window */
             EINA_LIST_FOREACH(con->zones, zl, zone) 
               {
                  Il_Sft_Win *swin;

                  if (!(swin = e_mod_sft_win_new(zone))) continue;
                  swins = eina_list_append(swins, swin);
               }
          }
     }

   return m;
}

EAPI int 
e_modapi_shutdown(E_Module *m) 
{
   Il_Sft_Win *swin;

   /* destroy the softkey windows */
   EINA_LIST_FREE(swins, swin) 
     {
        e_object_del(E_OBJECT(swin));
        swin = NULL;
     }

   /* clear the module directory variable */
   if (_sft_mod_dir) eina_stringshare_del(_sft_mod_dir);
   _sft_mod_dir = NULL;

   return 1;
}
<commit_msg>Reset panel geometry for conformant apps when we close.<commit_after>#include "e.h"
#include "e_mod_main.h"
#include "e_mod_sft_win.h"

/* local variables */
static Eina_List *swins = NULL;

/* external variables */
const char *_sft_mod_dir = NULL;

EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Illume-Softkey" };

EAPI void *
e_modapi_init(E_Module *m) 
{
   E_Manager *man;
   Eina_List *l;

   /* setup variable to hold module directory */
   _sft_mod_dir = eina_stringshare_add(m->dir);

   /* loop through the managers (root windows) */
   EINA_LIST_FOREACH(e_manager_list(), l, man) 
     {
        E_Container *con;
        Eina_List *cl;

        /* loop through the containers */
        EINA_LIST_FOREACH(man->containers, cl, con) 
          {
             E_Zone *zone;
             Eina_List *zl;

             /* for each zone in this container, create a new softkey window */
             EINA_LIST_FOREACH(con->zones, zl, zone) 
               {
                  Il_Sft_Win *swin;

                  if (!(swin = e_mod_sft_win_new(zone))) continue;
                  swins = eina_list_append(swins, swin);
               }
          }
     }

   return m;
}

EAPI int 
e_modapi_shutdown(E_Module *m) 
{
   Il_Sft_Win *swin;

   /* destroy the softkey windows */
   EINA_LIST_FREE(swins, swin) 
     {
        e_object_del(E_OBJECT(swin));
        swin = NULL;
     }

   /* clear the module directory variable */
   if (_sft_mod_dir) eina_stringshare_del(_sft_mod_dir);
   _sft_mod_dir = NULL;

   /* reset bottom panel geometry to zero for conformant apps */
   ecore_x_e_illume_bottom_panel_geometry_set(ecore_x_window_root_first_get(), 
                                              0, 0, 0, 0);
   return 1;
}

{'fraction_non_alphanumeric': 0.10086633663366337, 'fraction_numerical': 0.0018564356435643563, 'mean_word_length': 2.2041625371655105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2543702', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1135, 'n_words': 252}