EAPI void * e_modapi_init(E_Module *m) { conf_module = m; e_exebuf_init(); /* add module supplied action */ act = e_action_add("exebuf"); if (act) { act->func.go = _e_mod_action_exebuf_cb; e_action_predef_name_set(_("Launch"), _("Run Command Dialog"), "exebuf", NULL, NULL, 0); } maug = e_int_menus_menu_augmentation_add_sorted ("main/1", _("Run Command"), _e_mod_menu_add, NULL, NULL, NULL); e_module_delayed_set(m, 1); return m; }
E_API void * e_modapi_init(E_Module *m) { conf_module = m; e_syscon_init(); /* add module supplied action */ act = e_action_add("syscon"); if (act) { act->func.go = _e_mod_action_syscon_cb; e_action_predef_name_set(N_("System"), N_("System Controls"), "syscon", NULL, NULL, 0); } maug = e_int_menus_menu_augmentation_add_sorted ("main/8", _("System"), _e_mod_menu_add, NULL, NULL, NULL); e_configure_registry_category_add("advanced", 80, _("Advanced"), NULL, "preferences-advanced"); e_configure_registry_item_add("advanced/syscon", 10, _("System Controls"), NULL, "system-shutdown", e_int_config_syscon); e_syscon_gadget_init(m); e_module_delayed_set(m, 1); return m; }
EAPI void * e_modapi_init(E_Module *m) { e_configure_registry_category_add("appearance", 10, _("Look"), NULL, "preferences-look"); e_configure_registry_item_add("appearance/wallpaper2", 10, _("Wallpaper 2"), NULL, "preferences-desktop-wallpaper", wp_conf_show); e_configure_registry_category_add("internal", -1, _("Internal"), NULL, "enlightenment/internal"); // e_configure_registry_item_add("internal/wallpaper_desk", -1, _("Wallpaper 2"), NULL, "preferences-system-windows", e_int_config_wallpaper_desk); maug = e_int_menus_menu_augmentation_add_sorted ("config/1", _("Wallpaper 2"), _e_mod_menu_add, NULL, NULL, NULL); // import_hdl = e_fm2_mime_handler_new(_("Set As Background 2"), "preferences-desktop-wallpaper", // e_int_config_wallpaper_handler_set, NULL, // e_int_config_wallpaper_handler_test, NULL); // if (import_hdl) // { // e_fm2_mime_handler_mime_add(import_hdl, "image/png"); // e_fm2_mime_handler_mime_add(import_hdl, "image/jpeg"); // } conf_module = m; e_module_delayed_set(m, 1); return m; }
EAPI void * e_modapi_init(E_Module *m) { Eina_List *l, *ll, *lll; E_Manager *man; E_Container *con; E_Zone *zone; conf_module = m; /* Setup Entry in Config Panel */ e_configure_registry_category_add("fileman", 100, _("Files"), NULL, "system-file-manager"); e_configure_registry_item_add("fileman/fileman", 10, _("File Manager"), NULL, "system-file-manager", e_int_config_fileman); e_configure_registry_item_add("fileman/file_icons", 20, _("File Icons"), NULL, "preferences-file-icons", e_int_config_mime); /* Setup Config edd */ _e_mod_fileman_config_load(); /* add module supplied action */ act = e_action_add("fileman"); if (act) { act->func.go = _e_mod_action_fileman_cb; e_action_predef_name_set(N_("Launch"), N_("File Manager"), "fileman", NULL, "syntax: /path/to/dir or ~/path/to/dir or favorites or desktop, examples: /boot/grub, ~/downloads", 1); } maug = e_int_menus_menu_augmentation_add_sorted("main/1", _("Navigate"), _e_mod_menu_add, NULL, NULL, NULL); e_module_delayed_set(m, 1); e_fwin_init(); /* Hook into zones */ for (l = e_manager_list(); l; l = l->next) { man = l->data; for (ll = man->containers; ll; ll = ll->next) { con = ll->data; for (lll = con->zones; lll; lll = lll->next) { zone = lll->data; if (e_fwin_zone_find(zone)) continue; if (fileman_config->view.show_desktop_icons) e_fwin_zone_new(zone, e_mod_fileman_path_find(zone)); } } } zone_add_handler = ecore_event_handler_add(E_EVENT_ZONE_ADD, _e_mod_zone_add, NULL); /* FIXME: add system event for new zone creation, and on creation, add an fwin to the zone */ e_fileman_dbus_init(); e_fwin_nav_init(); return m; }
EAPI void * e_modapi_init(E_Module *m) { char buf[4096]; /* Set up a new configuration panel */ snprintf(buf, sizeof(buf), "%s/e-module-gadman.edj", m->dir); e_configure_registry_category_add("extensions", 90, _("Extensions"), NULL, "preferences-extensions"); e_configure_registry_item_add("extensions/gadman", 150, _("Gadgets"), NULL, buf, _config_gadman_module); /* Set this module to be loaded after all other modules, or we don't see modules loaded after this */ e_module_priority_set(m, 100); gadman_init(m); //Settings values Man->conf_edd = E_CONFIG_DD_NEW("Gadman_Config", Config); #undef T #undef D #define T Config #define D Man->conf_edd E_CONFIG_VAL(D, T, bg_type, INT); E_CONFIG_VAL(D, T, color_r, INT); E_CONFIG_VAL(D, T, color_g, INT); E_CONFIG_VAL(D, T, color_b, INT); E_CONFIG_VAL(D, T, color_a, INT); E_CONFIG_VAL(D, T, anim_bg, INT); E_CONFIG_VAL(D, T, anim_gad, INT); E_CONFIG_VAL(D, T, custom_bg, STR); Man->conf = e_config_domain_load("module.gadman", Man->conf_edd); if (!Man->conf) { Man->conf = E_NEW(Config, 1); Man->conf->bg_type = 0; Man->conf->color_r = 255; Man->conf->color_g = 255; Man->conf->color_b = 255; Man->conf->color_a = 255; Man->conf->anim_bg = 1; Man->conf->anim_gad = 1; Man->conf->custom_bg = NULL; } E_CONFIG_LIMIT(Man->conf->bg_type, 0, 5); E_CONFIG_LIMIT(Man->conf->color_r, 0, 255); E_CONFIG_LIMIT(Man->conf->color_g, 0, 255); E_CONFIG_LIMIT(Man->conf->color_b, 0, 255); E_CONFIG_LIMIT(Man->conf->color_a, 0, 255); E_CONFIG_LIMIT(Man->conf->anim_bg, 0, 1); E_CONFIG_LIMIT(Man->conf->anim_gad, 0, 1); /* Menu augmentation */ Man->icon_name = eina_stringshare_add(buf); Man->maug = NULL; Man->maug = e_int_menus_menu_augmentation_add_sorted ("config/1", _("Gadgets"), _gadman_maug_add, (void *)Man->icon_name, NULL, NULL); /* Create toggle action */ Man->action = e_action_add("gadman_toggle"); if (Man->action) { Man->action->func.go = _gadman_action_cb; e_action_predef_name_set(_("Gadgets"), _("Show/hide gadgets"), "gadman_toggle", NULL, NULL, 0); } gadman_update_bg(); return Man; }