<commit_before>#include "e.h"

struct _E_Config_Dialog_Data 
{
   E_Shelf *es;
   E_Config_Shelf *escfg;

   Evas_Object *o_autohide, *o_desk_list;
   Eina_List *autohide_list, *desk_list;

   int layer, overlap;
   int orient, fit_along;
   int size;
   const char *style;
   int autohide, autohide_action;
   double hide_timeout, hide_duration;
   int desk_show_mode;
};

/* local function prototypes */
static void *_create_data(E_Config_Dialog *cfd);
static void _fill_data(E_Config_Dialog_Data *cfdata);
static void _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata);
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static void _fill_styles(E_Config_Dialog_Data *cfdata, Evas_Object *obj);
static void _cb_set_contents(void *data, void *data2 __UNUSED__);
static void _cb_autohide_change(void *data, Evas_Object *obj __UNUSED__);
static void _fill_desks(E_Config_Dialog_Data *cfdata);

EAPI void 
e_int_shelf_config(E_Shelf *es) 
{
   E_Config_Dialog_View *v;

   if (!(v = E_NEW(E_Config_Dialog_View, 1))) return;

   v->create_cfdata = _create_data;
   v->free_cfdata = _free_data;
   v->basic.create_widgets = _basic_create;
   v->basic.apply_cfdata = _basic_apply;

   es->config_dialog = 
     e_config_dialog_new(es->zone->container, _("Shelf Settings"), 
                         "E", "_shelf_config_dialog", 
                         "preferences-desktop-shelf", 0, v, es);<commit_msg>Center shelf config dialog.<commit_after>#include "e.h"

struct _E_Config_Dialog_Data 
{
   E_Shelf *es;
   E_Config_Shelf *escfg;

   Evas_Object *o_autohide, *o_desk_list;
   Eina_List *autohide_list, *desk_list;

   int layer, overlap;
   int orient, fit_along;
   int size;
   const char *style;
   int autohide, autohide_action;
   double hide_timeout, hide_duration;
   int desk_show_mode;
};

/* local function prototypes */
static void *_create_data(E_Config_Dialog *cfd);
static void _fill_data(E_Config_Dialog_Data *cfdata);
static void _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata);
static Evas_Object *_basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dialog_Data *cfdata);
static int _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata);
static void _fill_styles(E_Config_Dialog_Data *cfdata, Evas_Object *obj);
static void _cb_set_contents(void *data, void *data2 __UNUSED__);
static void _cb_autohide_change(void *data, Evas_Object *obj __UNUSED__);
static void _fill_desks(E_Config_Dialog_Data *cfdata);

EAPI void 
e_int_shelf_config(E_Shelf *es) 
{
   E_Config_Dialog_View *v;

   if (!(v = E_NEW(E_Config_Dialog_View, 1))) return;

   v->create_cfdata = _create_data;
   v->free_cfdata = _free_data;
   v->basic.create_widgets = _basic_create;
   v->basic.apply_cfdata = _basic_apply;

   es->config_dialog = 
     e_config_dialog_new(es->zone->container, _("Shelf Settings"), 
                         "E", "_shelf_config_dialog", 
                         "preferences-desktop-shelf", 0, v, es);
   e_win_centered_set(es->config_dialog->dia->win, EINA_TRUE);
{'fraction_non_alphanumeric': 0.09915545824210197, 'fraction_numerical': 0.001876759461995621, 'mean_word_length': 4.867889908256881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6317305', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1170, 'n_words': 242}