<commit_before>#include "e.h"

typedef struct _E_Configure_CB E_Configure_CB;

struct _E_Configure_CB
{
   E_Configure *eco;
   E_Config_Dialog *(*func) (E_Container *con);   
};

static void _e_configure_free(E_Configure *app);
static void _e_configure_cb_del_req(E_Win *win);
static void _e_configure_cb_resize(E_Win *win);
static void _e_configure_cb_standard(void *data);
static void _e_configure_cb_close(void *data, void *data2);

static E_Configure *_e_configure = NULL;

EAPI E_Configure *
e_configure_show(E_Container *con)
{
   E_Configure *eco;
   E_Manager *man;
   Evas_Coord ew, eh, mw, mh;

   if (_e_configure)
     {
	E_Zone *z;
	
	eco = _e_configure;
	z = e_util_zone_current_get(e_manager_current_get());
	e_border_uniconify(eco->win->border);
	e_win_show(eco->win);
	e_win_raise(eco->win);
	if (z->container == eco->win->border->zone->container)
	  e_border_desk_set(eco->win->border, e_desk_current_get(z));
	else
	  {
	     if (!eco->win->border->sticky)
	       e_desk_show(eco->win->border->desk);
	     ecore_x_pointer_warp(eco->win->border->zone->container->win,
				  eco->win->border->zone->x + (eco->win->border->zone->w / 2),
				  eco->win->border->zone->y + (eco->win->border->zone->h / 2));
	  }
	e_border_unshade(eco->win->border, E_DIRECTION_DOWN);
	return NULL;
     }
   
   if (!con)
     {
	man = e_manager_current_get();
	if (!man) return NULL;
	con = e_container_current_get(man);
	if (!con) con = e_container_number_get(man, 0);
	if (!con) return NULL;
     }
   
   eco = E_OBJECT_ALLOC(E_Configure, E_CONFIGURE_TYPE, _e_configure_free);
   if (!eco) return NULL;
   eco->win = e_win_new(con);   
   if (!eco->win)
     {
	free(eco);
	return NULL;
     }
   eco->win->data = eco;
   
   eco->con = con;
   
   e_win_title_set(eco->win, _("Enlightenment Configuration"));
   e_win_name_class_set(eco->win, "E", "_configure");
   e_win_dialog_set(eco->win, 1);
   eco->evas = e_win_evas_get(eco->win);
   e_win_delete_callback_set(eco->win, _e_configure_cb_del_req);
   e_win_resize_callback_set(eco->win, _e_configure_cb_resize);   
   e_win_centered_set(eco->win, 1);
      
   eco->edje = edje_object_add(eco->evas);
   e_theme_edje_object_set(eco->edje, "base/theme/configure",
			   "e/widgets/configure/main");
   
   /* 24 */
   eco->ilist = e_widget_ilist_add(eco->evas, 32, 32, NULL);
   e_widget_ilist_selector_set(eco->ilist, 1);
   e_widget_min_size_get(eco->ilist, &mw, &mh);
   edje_extern_object_min_size_set(eco->ilist, mw, mh);
   edje_object_part_swallow(eco->edje, "e.swallow.content", eco->ilist);
   edje_object_part_text_set(eco->edje, "title", _("Configuration Panel"));

   /* add items here */
   e_configure_header_item_add(eco, "enlightenment/appearance", _("Appearance"));
   e_configure_standard_item_add(eco, "enlightenment/background", _("Wallpaper"), e_int_config_wallpaper);
   e_configure_standard_item_add(eco, "enlightenment/themes", _("Theme"), e_int_config_theme);   
   e_configure_standard_item_add(eco, "enlightenment/fonts", _("Fonts"), e_int_config_fonts);
//   e_configure_standard_item_add(eco, "enlightenment/themes", _("Colors"), e_int_config_color_classes);
   e_configure_standard_item_add(eco, "enlightenment/icon_themes", _("Icon Theme"), e_int_config_icon_themes);
   e_configure_standard_item_add(eco, "enlightenment/mouse", _("Mouse Cursor"), e_int_config_cursor);
   e_configure_standard_item_add(eco, "enlightenment/windows", _("Window Display"), e_int_config_window_display);
   e_configure_standard_item_add(eco, "enlightenment/transitions", _("Transitions"), e_int_config_transitions);
   e_configure_standard_item_add(eco, "enlightenment/shelf", _("Shelves"), e_int_config_shelf);
   
   e_configure_header_item_add(eco, "enlightenment/screen_setup", _("Screen"));
   e_configure_standard_item_add(eco, "enlightenment/desktops", _("Virtual Desktops"), e_int_config_desks);
   e_configure_standard_item_add(eco, "enlightenment/screen_resolution", _("Screen Resolution"), e_int_config_display);
   e_configure_standard_item_add(eco, "enlightenment/desklock", _("Screen Lock"), e_int_config_desklock);
   
   e_configure_header_item_add(eco, "enlightenment/behavior", _("Behavior"));
   e_configure_standard_item_add(eco, "enlightenment/focus", _("Window Focus"), e_int_config_focus);
   e_configure_standard_item_add(eco, "enlightenment/keys", _("Key Bindings"), e_int_config_keybindings);
   e_configure_standard_item_add(eco, "enlightenment/mouse_clean", _("Mouse Bindings"), e_int_config_mousebindings);
   e_configure_standard_item_add(eco, "enlightenment/menus", _("Menus"), e_int_config_menus);
   
   e_configure_header_item_add(eco, "enlightenment/misc", _("Miscellaneous"));
   e_configure_standard_item_add(eco, "enlightenment/applications", _("Applications"), e_int_config_apps);
   e_configure_standard_item_add(eco, "enlightenment/performance", _("Performance"), e_int_config_performance);
   e_configure_standard_item_add(eco, "enlightenment/configuration", _("Configuration Dialogs"), e_int_config_cfgdialogs);
   e_configure_standard_item_add(eco, "enlightenment/intl", _("Internationalization"), e_int_config_intl);

   
   e_configure_header_item_add(eco, "enlightenment/advanced", _("Advanced"));
   e_configure_standard_item_add(eco, "enlightenment/startup", _("Startup"), e_int_config_startup);
   e_configure_standard_item_add(eco, "enlightenment/winlist", _("Window List"), e_int_config_winlist);
   e_configure_standard_item_add(eco, "enlightenment/window_manipulation", _("Window Manipulation"), e_int_config_window_manipulation);
   e_configure_standard_item_add(eco, "enlightenment/run", _("Run Command"), e_int_config_exebuf);
   e_configure_standard_item_add(eco, "enlightenment/directories", _("Search Directories"), e_int_config_paths);

   e_configure_header_item_add(eco, "enlightenment/extensions", _("Extensions"));<commit_msg>Change to Language Settings..easier to understand & translate.<commit_after>#include "e.h"

typedef struct _E_Configure_CB E_Configure_CB;

struct _E_Configure_CB
{
   E_Configure *eco;
   E_Config_Dialog *(*func) (E_Container *con);   
};

static void _e_configure_free(E_Configure *app);
static void _e_configure_cb_del_req(E_Win *win);
static void _e_configure_cb_resize(E_Win *win);
static void _e_configure_cb_standard(void *data);
static void _e_configure_cb_close(void *data, void *data2);

static E_Configure *_e_configure = NULL;

EAPI E_Configure *
e_configure_show(E_Container *con)
{
   E_Configure *eco;
   E_Manager *man;
   Evas_Coord ew, eh, mw, mh;

   if (_e_configure)
     {
	E_Zone *z;
	
	eco = _e_configure;
	z = e_util_zone_current_get(e_manager_current_get());
	e_border_uniconify(eco->win->border);
	e_win_show(eco->win);
	e_win_raise(eco->win);
	if (z->container == eco->win->border->zone->container)
	  e_border_desk_set(eco->win->border, e_desk_current_get(z));
	else
	  {
	     if (!eco->win->border->sticky)
	       e_desk_show(eco->win->border->desk);
	     ecore_x_pointer_warp(eco->win->border->zone->container->win,
				  eco->win->border->zone->x + (eco->win->border->zone->w / 2),
				  eco->win->border->zone->y + (eco->win->border->zone->h / 2));
	  }
	e_border_unshade(eco->win->border, E_DIRECTION_DOWN);
	return NULL;
     }
   
   if (!con)
     {
	man = e_manager_current_get();
	if (!man) return NULL;
	con = e_container_current_get(man);
	if (!con) con = e_container_number_get(man, 0);
	if (!con) return NULL;
     }
   
   eco = E_OBJECT_ALLOC(E_Configure, E_CONFIGURE_TYPE, _e_configure_free);
   if (!eco) return NULL;
   eco->win = e_win_new(con);   
   if (!eco->win)
     {
	free(eco);
	return NULL;
     }
   eco->win->data = eco;
   
   eco->con = con;
   
   e_win_title_set(eco->win, _("Enlightenment Configuration"));
   e_win_name_class_set(eco->win, "E", "_configure");
   e_win_dialog_set(eco->win, 1);
   eco->evas = e_win_evas_get(eco->win);
   e_win_delete_callback_set(eco->win, _e_configure_cb_del_req);
   e_win_resize_callback_set(eco->win, _e_configure_cb_resize);   
   e_win_centered_set(eco->win, 1);
      
   eco->edje = edje_object_add(eco->evas);
   e_theme_edje_object_set(eco->edje, "base/theme/configure",
			   "e/widgets/configure/main");
   
   /* 24 */
   eco->ilist = e_widget_ilist_add(eco->evas, 32, 32, NULL);
   e_widget_ilist_selector_set(eco->ilist, 1);
   e_widget_min_size_get(eco->ilist, &mw, &mh);
   edje_extern_object_min_size_set(eco->ilist, mw, mh);
   edje_object_part_swallow(eco->edje, "e.swallow.content", eco->ilist);
   edje_object_part_text_set(eco->edje, "title", _("Configuration Panel"));

   /* add items here */
   e_configure_header_item_add(eco, "enlightenment/appearance", _("Appearance"));
   e_configure_standard_item_add(eco, "enlightenment/background", _("Wallpaper"), e_int_config_wallpaper);
   e_configure_standard_item_add(eco, "enlightenment/themes", _("Theme"), e_int_config_theme);   
   e_configure_standard_item_add(eco, "enlightenment/fonts", _("Fonts"), e_int_config_fonts);
   //e_configure_standard_item_add(eco, "enlightenment/themes", _("Colors"), e_int_config_color_classes);
   e_configure_standard_item_add(eco, "enlightenment/icon_themes", _("Icon Theme"), e_int_config_icon_themes);
   e_configure_standard_item_add(eco, "enlightenment/mouse", _("Mouse Cursor"), e_int_config_cursor);
   e_configure_standard_item_add(eco, "enlightenment/windows", _("Window Display"), e_int_config_window_display);
   e_configure_standard_item_add(eco, "enlightenment/transitions", _("Transitions"), e_int_config_transitions);
   e_configure_standard_item_add(eco, "enlightenment/shelf", _("Shelves"), e_int_config_shelf);
   
   e_configure_header_item_add(eco, "enlightenment/screen_setup", _("Screen"));
   e_configure_standard_item_add(eco, "enlightenment/desktops", _("Virtual Desktops"), e_int_config_desks);
   e_configure_standard_item_add(eco, "enlightenment/screen_resolution", _("Screen Resolution"), e_int_config_display);
   e_configure_standard_item_add(eco, "enlightenment/desklock", _("Screen Lock"), e_int_config_desklock);
   
   e_configure_header_item_add(eco, "enlightenment/behavior", _("Behavior"));
   e_configure_standard_item_add(eco, "enlightenment/focus", _("Window Focus"), e_int_config_focus);
   e_configure_standard_item_add(eco, "enlightenment/keys", _("Key Bindings"), e_int_config_keybindings);
   e_configure_standard_item_add(eco, "enlightenment/mouse_clean", _("Mouse Bindings"), e_int_config_mousebindings);
   e_configure_standard_item_add(eco, "enlightenment/menus", _("Menus"), e_int_config_menus);
   
   e_configure_header_item_add(eco, "enlightenment/misc", _("Miscellaneous"));
   e_configure_standard_item_add(eco, "enlightenment/applications", _("Applications"), e_int_config_apps);
   e_configure_standard_item_add(eco, "enlightenment/performance", _("Performance"), e_int_config_performance);
   e_configure_standard_item_add(eco, "enlightenment/configuration", _("Configuration Dialogs"), e_int_config_cfgdialogs);
   e_configure_standard_item_add(eco, "enlightenment/intl", _("Language Settings"), e_int_config_intl);
   
   e_configure_header_item_add(eco, "enlightenment/advanced", _("Advanced"));
   e_configure_standard_item_add(eco, "enlightenment/startup", _("Startup"), e_int_config_startup);
   e_configure_standard_item_add(eco, "enlightenment/winlist", _("Window List"), e_int_config_winlist);
   e_configure_standard_item_add(eco, "enlightenment/window_manipulation", _("Window Manipulation"), e_int_config_window_manipulation);
   e_configure_standard_item_add(eco, "enlightenment/run", _("Run Command"), e_int_config_exebuf);
   e_configure_standard_item_add(eco, "enlightenment/directories", _("Search Directories"), e_int_config_paths);

   e_configure_header_item_add(eco, "enlightenment/extensions", _("Extensions"));
{'fraction_non_alphanumeric': 0.13750318687855867, 'fraction_numerical': 0.0022095691340188665, 'mean_word_length': 6.433986102337334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 131, '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': '6235595', 'n_tokens_mistral': 4642, 'n_tokens_neox': 4384, 'n_words': 604}