Summary: Fix misspellings and spaces in E's files.
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2676
/* write out actual acpi received data to stdout for debugging
res = fwrite(ev->data, ev->size, 1, stdout);
*/
- /* data from a server isnt a string - its not 0 byte terminated. it's just
+ /* data from a server isn't a string - its not 0 byte terminated. it's just
* a blob of data. copy to string and 0 byte terminate it so it can be
* string-swizzled/parsed etc. */
if (!acpibuf) acpibuf = eina_strbuf_new();
const char *tmp;
int i = 0;
-/* XCB is not avaibale when running in wayland only mode. No need to start anything here */
+/* XCB is not available when running in wayland only mode. No need to start anything here */
#ifdef HAVE_WAYLAND_ONLY
printf("E Alert is not suitable to be used with E in wayland only mode\n");
exit(0);
E_LIST_REVERSE_FREE(list, child)
{
/* Don't stack iconic transients. If the user wants these shown,
- * thats another option.
+ * that's another option.
*/
if (child->iconic) continue;
if (below)
}
ec->mouse.current.mx = output->x;
ec->mouse.current.my = output->y;
- /* also we dont pass the same params that went in - then again that */
+ /* also we don't pass the same params that went in - then again that */
/* should be ok as we are just ending the action if it has an end */
if (ec->cur_mouse_action)
{
/**
* Resize window to values that do not account client decorations yet.
*
- * This call will consider given size does not account client
+ * This call will consider given size and does not for account client
* decoration, so these values (e_comp_object_frame) will be
- * accounted automatically. This is specially useful when it is a new
- * client and has not be evaluated yet, in this case
+ * accounted for automatically. This is specially useful when it is a new
+ * client and has not been evaluated yet, in this case
* e_comp_object_frame will be zeroed and no information is known. It
- * will mark pending requests so client will be accounted on
+ * will mark pending requests so the client will be accounted for on
* evalutation phase.
*
* @parm w horizontal window size.
}
/**
- * Move and resize window to values that do not account client decorations yet.
+ * Move and resize window to values that do not account for client decorations yet.
*
* This call will consider given values already accounts client
* decorations, so it will not be considered later. This will just
unsigned int animating; // it's busy animating
unsigned int failures; //number of consecutive e_pixmap_image_draw() failures
- Eina_Bool delete_pending : 1; // delete pendig
+ Eina_Bool delete_pending : 1; // delete pending
Eina_Bool defer_hide : 1; // flag to get hide to work on deferred hide
Eina_Bool showing : 1; // object is currently in "show" animation
Eina_Bool visible : 1; // is visible
ec = cw->ec;
/* note: this is here as it seems there are enough apps that do not even
* expect us to emulate a look of focus but not actually set x input
- * focus as we do - so simply abort any focuse set on such windows */
+ * focus as we do - so simply abort any focus set on such windows */
/* be strict about accepting focus hint */
if (e_pixmap_is_x(ec->pixmap))
{
}
if ((ec->iconic) && (!ec->deskshow))
{
- /* dont focus an iconified window. that's silly! */
+ /* don't focus an iconified window. that's silly! */
e_client_uniconify(ec);
if (e_client_focus_track_enabled())
e_client_focus_latest_set(ec);
if (!cw->ec->shaded) cw->shade.val = 1.0 - cw->shade.val;
}
- /* due to M_PI's innacuracy, cos(M_PI/2) != 0.0, so we need this */
+ /* due to M_PI's inaccuracy, cos(M_PI/2) != 0.0, so we need this */
if (cw->shade.val < 0.001) cw->shade.val = 0.0;
else if (cw->shade.val > .999)
cw->shade.val = 1.0;
evas_object_image_data_set(o, pix);
evas_object_image_data_update_add(o, 0, 0, w, h);
}
-// dont need to fix alpha chanel as blending
+// don't need to fix alpha chanel as blending
// should be totally off here regardless of
// alpha channel content
}
* Get the buffer for a given resource.
*
* Retrieves the Wayland SHM buffer for the resource and
- * uses it to create a new E_Comp_Wl_Buffer object. This
+ * uses it to create a new E_Comp_Wl_Buffer object. This
* buffer will be freed when the resource is destroyed.
*
* @param resource that owns the desired buffer
if (use_adj) newpri = getpriority(PRIO_PROCESS, pid) + adj;
setpriority(PRIO_PROCESS, pid, newpri);
-// shouldnt need to do this as default ionice class is "none" (0), and
+// shouldn't need to do this as default ionice class is "none" (0), and
// this inherits io priority FROM nice level
// ioprio_set(IOPRIO_WHO_PROCESS, pid,
// IOPRIO_PRIO_VALUE(2, 5));
}
}
- /* FIXME: need to send synthetic stacking event too as well as move/resize */
+ /* FIXME: need to send synthetic stacking event to, as well as move/resize */
if ((((ec->maximized & E_MAXIMIZE_TYPE) != E_MAXIMIZE_NONE) && (move || resize)) ||
((!move) && (!resize)))
_e_comp_x_client_move_resize_send(ec);
/* if (!ec->icccm.take_focus)
* return ECORE_CALLBACK_PASS_ON; */
- /* should be equal, maybe some clients dont reply with the proper timestamp ? */
+ /* should be equal, maybe some clients don't reply with the proper timestamp ? */
if (ev->time >= focus_time)
evas_object_focus_set(ec->frame, 1);
return ECORE_CALLBACK_PASS_ON;
}
}
/* It's ok not to have fetch flag, should only be set on startup
- * * and not changed. */
+ * and not changed. */
if (!ecore_x_netwm_pid_get(win, &ec->netwm.pid))
{
if (ec->icccm.client_leader)
}
/**
- *Delete an item in the configuration panel.
+ *Delete an item in the configuration panel.
*
*@param path location the item to delete
*/
if (!cfdata->editor->img_widget) return;
o = e_util_icon_theme_icon_add(cfdata->icon, 128, cfdata->editor->evas);
- /* NB this takes care of freeing any previous icon object */
+ /* NB: this takes care of freeing any previous icon object */
e_widget_button_icon_set(cfdata->editor->img_widget, o);
e_widget_change(cfdata->editor->img_widget);
}
snprintf(buf, sizeof(buf), "E_START|%i", startup_id);
e_util_env_set("DESKTOP_STARTUP_ID", buf);
- // dont set vsync for clients - maybe inherited from compositore. fixme:
+ // don't set vsync for clients - maybe inherited from compositor. fixme:
// need a way to still inherit from parent env of wm.
e_util_env_set("__GL_SYNC_TO_VBLANK", NULL);
const char *real_path;
EFM_SMART_CHECK();
- /* internal config for now - don't see a pont making this configurable */
+ /* internal config for now - don't see a point making this configurable */
sd->regions.member_max = 64;
if (!sd->config)
E_Fm2_Client *cl, *cl_chosen = NULL;
int min_req = 0x7fffffff;
- /* if we don't have a slave - spane one */
+ /* if we don't have a slave - spawn one */
if (!_e_fm2_client_list)
{
_e_fm2_client_spawn();
/* this is a virtual device - it's where your favorites list is
* stored - a dir with
.desktop files or symlinks (in fact anything
- * you like
+ * you like).
*/
if (e_user_dir_concat_static(buf, "fileman/favorites") >= sizeof(buf))
return NULL;
/* this is a virtual device - it's where your favorites list is
* stored - a dir with
.desktop files or symlinks (in fact anything
- * you like
+ * you like).
*/
if ((!path) || (!path[0]) || (!strcmp(path, "/")))
{
}
/*
- * On mouse up, check if we want to do inplace open
+ * On mouse up, check if we want to do in place open
*/
if ((eu) &&
(!multi_sel) &&
{
E_FM2_VIEW_MODE_ICONS, /* regular layout row by row like text */
E_FM2_VIEW_MODE_GRID_ICONS, /* regular grid layout */
- E_FM2_VIEW_MODE_CUSTOM_ICONS, /* icons go anywhere u drop them (desktop) */
+ E_FM2_VIEW_MODE_CUSTOM_ICONS, /* icons go anywhere you drop them (desktop) */
/* FIXME: not going to implement this at this stage */
- E_FM2_VIEW_MODE_CUSTOM_GRID_ICONS, /* icons go anywhere u drop them but align to a grid */
+ E_FM2_VIEW_MODE_CUSTOM_GRID_ICONS, /* icons go anywhere you drop them but align to a grid */
/* FIXME: not going to implement this at this stage */
- E_FM2_VIEW_MODE_CUSTOM_SMART_GRID_ICONS, /* icons go anywhere u drop them but try align to icons nearby */
+ E_FM2_VIEW_MODE_CUSTOM_SMART_GRID_ICONS, /* icons go anywhere you drop them but try align to icons nearby */
/* FIXME: not going to implement this at this stage */
E_FM2_VIEW_MODE_LIST /* vertical fileselector list */
} E_Fm2_View_Mode;
*node = NULL;
*mark = 0;
/* Do not clean out _e_fm_op_error_response. This way when another error
- * occures, it would be handled automatically. */
+ * occurs, it would be handled automatically. */
return 1;
}
}
return 0;
}
-/* This works very simple. Take a task from queue and run appropriate _atom() on it.
+/* This works in a simple way. Take a task from queue and run appropriate _atom() on it.
* If after _atom() is done, task->finished is 1 remove the task from queue. Otherwise,
* run _atom() on the same task on next call.
*
file_len = strlen(buf);
/* TODO: need to make a policy regarding copy postfix:
- * currently attach " (copy)" continuasly
+ * currently attach " (copy)" continuously.
*
* TODO: i18n */
copy_str = "(copy)";
* @param gc gadcon pointer
* @param name to use for gadget
* @param id assigned to gadget
- * @param style to for gadget
+ * @param style to for gadget
* @param base_obj the evas object that will show up in the shelf or gadget module
* @return returns pointer to created gadget, on failure returns null
*/
if (!ci->objs)
{
- /* no more e_icon wait for this object to bet loaded */
+ /* no more e_icon wait for this object to be loaded */
_cache->load_queue = eina_list_remove(_cache->load_queue, ci);
_e_icon_cache_item_free(ci);
return;
static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
static Evas_Object *_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
-/* Actual config data we will be playing with whil the dialog is active */
+/* Actual config data we will be playing with while the dialog is active */
struct _E_Config_Dialog_Data
{
E_Client *client;
}
/*
- * This function initalises E_Int_Menu_Applications and add
+ * This function initalises E_Int_Menu_Applications and adds
* our data.
*/
static E_Int_Menu_Applications*
}
//if (o) evas_object_pass_events_set(o, 1);
- /* FIXME: Not sure why there are two different tries to get the icon size, surely only the last one si needed. */
+ /* FIXME: Not sure why there are two different tries to get the icon size, surely only the last one is needed. */
/* FIXME: Do it this way later, when e_app_icon_add() just registers a request for an icon to be filled in when it's ready.
if (mi->app)
{
if (_e_menu_activate_dragging)
{
/* FIXME: This is a drop, which is not allowed for now.
- * Once dragging is working, this will be subject to some experimenattion.
+ * Once dragging is working, this will be subject to some experimentation.
*/
}
else
/* TODO List:
*
* * add module types/classes
- * * add list of exclusions that a module can't work withApi
+ * * add list of exclusions that a module can't work with Api
*
*/
/* Object safety/debugging checks */
/* */
-/* OBJECT_PARANOIA_CHECK is paranoid and checkes pointers and traps segv's */
+/* OBJECT_PARANOIA_CHECK is paranoid and checks pointers and traps segv's */
/* in case they dont work... very paranoid and slow. NB for backtrace to */
/* work you need gcc, glibc and you need to compile with compile options of */
/* -g -rdynamic and link with them too */
{
/* The number of matches for this remember has changed so we
* need to remove from list and insert back into the appropriate
- * loction. */
+ * location. */
Eina_List *l = NULL;
E_Remember *r;
E_API void
e_sigill_act(int x EINA_UNUSED, siginfo_t *info EINA_UNUSED, void *data EINA_UNUSED)
{
- // In case of a sigill in Enlightenment, Enlightenment start will catch the sigill and continue,
- // because evas cpu detection use that behaviour. But if we get a SIGILL after that, we endup in
- // this sig handler. So E start remember the SIGILL, and we will commit succide with a USR1, followed
+ // In case of a SIGILL in Enlightenment, Enlightenment start will catch the SIGILL and continue,
+ // because evas cpu detection use that behaviour. But if we get a SIGILL after that, we end up in
+ // this sig handler. So E start remember the SIGILL, and we will commit suicide with a USR1, followed
// by a SEGV.
kill(getpid(), SIGUSR1);
kill(getpid(), SIGSEGV);
if (p)
{
len = strlen(p);
- // path already there at the start. dont prepend. :)
+ // path already there at the start. don't prepend. :)
if ((!strcmp(p, p2)) ||
((len > len2) &&
(!strncmp(p, p2, len2)) &&
if (p)
{
len = strlen(p);
- // path already there at the end. dont append. :)
+ // path already there at the end. don't append. :)
if ((!strcmp(p, p2)) ||
((len > len2) &&
(!strcmp((p + len - len2), p2)) &&
{
_e_ptrace_traceme(really_know);
execv(args[0], args);
- /* We failed, 0 mean normal exit from E with no restart or crash so let exit */
+ /* We failed, 0 mean normal exit from E with no restart or crash so let's exit */
return 0;
}
case E_SYS_HALT:
case E_SYS_HALT_NOW:
e_dialog_text_set(dia, _("Powering off.<br>"
- "You cannot do any other system actions<br>"
+ "You cannot perform any other system actions<br>"
"once a shutdown has been started."));
break;
case E_SYS_REBOOT:
e_dialog_text_set(dia, _("Resetting.<br>"
- "You cannot do any other system actions<br>"
+ "You cannot perform any other system actions<br>"
"once a reboot has begun."));
break;
case E_SYS_SUSPEND:
e_dialog_text_set(dia, _("Suspending.<br>"
- "Until suspend is complete you cannot perform<br>"
- "any other system actions."));
+ "You cannot perform any other system actions<br>"
+ "until suspend is complete."));
break;
case E_SYS_HIBERNATE:
e_dialog_text_set(dia, _("Hibernating.<br>"
"You cannot perform any other system actions<br>"
- "until this is complete."));
+ "until hibernation is complete."));
break;
default:
case E_SYS_RESTART:
// XXX TODO: check for e_fm_op_registry entries and confirm
- // FIXME: we dont share out immortal info to restarted e. :(
+ // FIXME: we don't share out immortal info to restarted e. :(
// if (!e_util_immortal_check())
{
restart = 1;
if (e->data)
{
/* begin thumb */
- /* don't check stuff. since this connects TO e17 it is connecting */
+ /* don't check stuff. since this connects TO E it is connecting */
/* TO a trusted process that WILL send this message properly */
/* formatted. if the thumbnailer dies anyway - it's not a big loss */
- /* but it is a sign of a bug in e formattign messages maybe */
+ /* but it is a sign of a bug in e formatting messages maybe */
file = e->data;
key = file + strlen(file) + 1;
if (!key[0]) key = NULL;
tdesktop = l->data;
EINA_LIST_FREE(l, td)
{
- // free/unref the desktosp we are not going to use
+ // free/unref the desktops we are not going to use
if (td != tdesktop) efreet_desktop_free(td);
}
}
Eina_Bool is_fs = EINA_FALSE;
if (stat(wd->path, &st) < 0) return;
- // if its a desktop file treat is spcially
+ // if its a desktop file treat is specially
if (((wd->mime) && (!strcasecmp(wd->mime, "application/x-desktop"))) ||
(eina_str_has_extension(wd->path, "desktop")))
{
Efreet_Desktop *desktop;
const char *type, *file;
- // load it and if its a specual removable or mount point
+ // load it and if its a special removable or mount point
// desktop file for e, then we want to do something special
desktop = efreet_desktop_new(wd->path);
if ((desktop) && (desktop->url) &&
* Return if the given item returned by e_widget_ilist_items_get()
* is a header.
*
- * This avoid expensive lookups to the nth element, however it's not
+ * This avoids expensive lookups to the nth element, however it's not
* able to check any validity on the given pointer and may crash. Be
* sure to use only with valid return of e_widget_ilist_items_get().
*/
/**
* Return the label of given item returned by e_widget_ilist_items_get().
*
- * This avoid expensive lookups to the nth element, however it's not
+ * This avoids expensive lookups to the nth element, however it's not
* able to check any validity on the given pointer and may crash. Be
* sure to use only with valid return of e_widget_ilist_items_get().
*/
/**
* Return the icon of given item returned by e_widget_ilist_items_get().
*
- * This avoid expensive lookups to the nth element, however it's not
+ * This avoids expensive lookups to the nth element, however it's not
* able to check any validity on the given pointer and may crash. Be
* sure to use only with valid return of e_widget_ilist_items_get().
*
/**
* Return the end of given item returned by e_widget_ilist_items_get().
*
- * This avoid expensive lookups to the nth element, however it's not
+ * This avoids expensive lookups to the nth element, however it's not
* able to check any validity on the given pointer and may crash. Be
* sure to use only with valid return of e_widget_ilist_items_get().
*
/**
* Return the data of given item returned by e_widget_ilist_items_get().
*
- * This avoid expensive lookups to the nth element, however it's not
+ * This avoids expensive lookups to the nth element, however it's not
* able to check any validity on the given pointer and may crash. Be
* sure to use only with valid return of e_widget_ilist_items_get().
*
* Creates a new list widget
*
* @param evas the evas pointer
- * @param homogenous should widgets append to the list be evenly spaced out
+ * @param homogenous should widgets append to the list be evenly spaced out
* @param horiz the direction the list should be displayed
* @return the new list wdiget
*/
/**
* Set the double value for the slider. This will also move the slider to
- * the correct position and update the text indecator. Will not do anything
+ * the correct position and update the text indicator. Will not do anything
* if the slider was not created with a double value.
*
* @param slider pointer to the slider to be modified
/**
* Set the integer value for the slider. This will also move the slider to
- * the correct position and update the text indecator. Will not do anything
+ * the correct position and update the text indicator. Will not do anything
* if the slider was not created with an integer value.
*
* @param slider pointer to the slider to be modified
/* calculate pixel area */
sz = scr->w * scr->h;
sz2 = scr2->w * scr2->h;
- /* if the one we already have is bigger, DONT add the new */
+ /* if the one we already have is bigger, DON'T add the new */
if (sz > sz2)
removes = eina_list_append(removes, scr2);
/* add the old to a list to remove */
}
}
- /* catch windoes that have fallen off the end if we got smaller */
+ /* catch windows that have fallen off the end if we got smaller */
if (xx < zone->desk_x_count)
{
for (y = 0; y < zone->desk_y_count; y++)