summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e7062a)
raw | patch | inline | side by side (parent: 2e7062a)
author | Jeffrey Middleton <jefromi@gmail.com> | |
Thu, 5 Mar 2009 20:36:12 +0000 (14:36 -0600) | ||
committer | Jeffrey Middleton <jefromi@gmail.com> | |
Thu, 5 Mar 2009 20:36:12 +0000 (14:36 -0600) |
All in comments except the one in a displayed message that got me
started!
started!
17 files changed:
diff --git a/src/command.c b/src/command.c
index 3c8a405011dc3f28289fb4ca787142b641cac175..add572265ef0773e87cd6436d2fe92ee40cb19ab 100644 (file)
--- a/src/command.c
+++ b/src/command.c
{ { 'q', 'Q', 3 }, 0, CMD_QUIT, "quit",
N_("Quit") },
- /* movment */
+ /* movement */
{ { UP, 'k', 0 }, 0, CMD_LIST_PREVIOUS, "up",
N_("Move cursor up") },
{ { DWN, 'j', 0 }, 0, CMD_LIST_NEXT, "down",
diff --git a/src/libmpdclient.c b/src/libmpdclient.c
index 9a6aeb62543abda73cfb148cfbe8589936dc8ecc..6f68ddaffe763103c272814cc9cc8cfec123e419 100644 (file)
--- a/src/libmpdclient.c
+++ b/src/libmpdclient.c
void mpd_startSearch(mpd_Connection * connection,int exact) {
if(connection->request) {
- /* search/find allready in progress */
+ /* search/find already in progress */
/* TODO: set error here? */
return;
}
void mpd_startFieldSearch(mpd_Connection * connection,int field) {
if(connection->request) {
- /* search/find allready in progress */
+ /* search/find already in progress */
/* TODO: set error here? */
return;
}
2+
/* length of search term */
strlen(arg)+
- /* closign " +\0 that is added sprintf */
+ /* closing " +\0 that is added sprintf */
2
)*sizeof(char));
/* and form the query */
diff --git a/src/libmpdclient.h b/src/libmpdclient.h
index 0dcbeda0bfcb8dff21163a537d33a278a15421dc..2e94f17a0583d3b828486c7d73df96a6a9fdba16 100644 (file)
--- a/src/libmpdclient.h
+++ b/src/libmpdclient.h
void mpd_sendSetvolCommand(mpd_Connection * connection, int volumeChange);
-/* WARNING: don't use volume command, its depreacted */
+/* WARNING: don't use volume command, its deprecated */
void mpd_sendVolumeCommand(mpd_Connection * connection, int volumeChange);
void mpd_sendCrossfadeCommand(mpd_Connection * connection, int seconds);
diff --git a/src/list_window.c b/src/list_window.c
index 8abad27381316f185b535164824c82455fc0607d..40fd179c7bd35bad60624a7b1251e1efbc2bf7f3 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
{
assert(lw != NULL);
- /* if the even occured above the list window move up */
+ /* if the even occurred above the list window move up */
if (y < 0) {
if (bstate & BUTTON3_CLICKED)
list_window_first(lw);
return true;
}
- /* if the even occured below the list window move down */
+ /* if the even occurred below the list window move down */
if ((unsigned)y >= rows) {
if (bstate & BUTTON3_CLICKED)
list_window_last(lw, rows);
diff --git a/src/main.c b/src/main.c
index 2edf2d4ecc0d3625bb67263a384724f185d19934..c80b7ea1fe3f0a0fc26eb082589645c0a5ae3587 100644 (file)
--- a/src/main.c
+++ b/src/main.c
screen_cmd(mpd, cmd);
if (cmd == CMD_VOLUME_UP || cmd == CMD_VOLUME_DOWN) {
- /* make sure we dont update the volume yet */
+ /* make sure we don't update the volume yet */
g_source_remove(update_source_id);
update_source_id = g_timeout_add(update_interval,
timer_mpd_update,
diff --git a/src/mpdclient.c b/src/mpdclient.c
index af3057d8e7bbfb0824dc65a067ff30e19a5466e9..f8f5ba72c42fff3c8f20503aaba206e07792b86f 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
if (c->status)
mpd_freeStatus(c->status);
- /* retreive new status */
+ /* retrieve new status */
mpd_sendStatusCommand(c->connection);
c->status = mpd_getStatus(c->connection);
if ((retval=mpdclient_finish_command(c)))
/* add the song to playlist */
playlist_append(&c->playlist, song);
- /* increment the playlist id, so we dont retrives a new playlist */
+ /* increment the playlist id, so we don't retrieve a new playlist */
c->playlist.id++;
/* call playlist updated callback */
return retval;
#ifdef ENABLE_FANCY_PLAYLIST_MANAGMENT_CMD_DELETE
- /* increment the playlist id, so we dont retrive a new playlist */
+ /* increment the playlist id, so we don't retrieve a new playlist */
c->playlist.id++;
/* remove the song from the playlist */
/* update the playlist */
playlist_swap(&c->playlist, old_index, new_index);
- /* increment the playlist id, so we dont retrives a new playlist */
+ /* increment the playlist id, so we don't retrieve a new playlist */
c->playlist.id++;
#else
/****************************************************************************/
-/*** Callback managment functions *******************************************/
+/*** Callback management functions ******************************************/
/****************************************************************************/
static void
/****************************************************************************/
-/*** Playlist managment functions *******************************************/
+/*** Playlist management functions ******************************************/
/****************************************************************************/
/* update playlist */
diff --git a/src/options.c b/src/options.c
index 83ae5ff6a63ab57456ef7568a8432f38b478a859..cc938c330334f709c340a5ce4dec306237d1acfe 100644 (file)
--- a/src/options.c
+++ b/src/options.c
if (g_str_has_prefix(arg, "--")) {
char *name, *value;
- /* make shure we got an argument for the previous option */
+ /* make sure we got an argument for the previous option */
if( opt && opt->argument )
option_error(ERROR_MISSING_ARGUMENT, opt->longopt, opt->argument);
- /* retreive a option argument */
+ /* retrieve a option argument */
if ((value=g_strrstr(arg+2, "="))) {
*value = '\0';
name = g_strdup(arg);
option_error(ERROR_UNKNOWN_OPTION, name, NULL);
g_free(name);
- /* abort if we got an argument to the option and dont want one */
+ /* abort if we got an argument to the option and don't want one */
if( value && opt->argument==NULL )
option_error(ERROR_GOT_ARGUMENT, arg, value);
size_t j;
for(j=1; j<len; j++) {
- /* make shure we got an argument for the previous option */
+ /* make sure we got an argument for the previous option */
if (opt && opt->argument)
option_error(ERROR_MISSING_ARGUMENT,
opt->longopt, opt->argument);
const char *value;
char *tmp;
- /* get initial values for host and password from MPD_HOST (enviroment) */
+ /* get initial values for host and password from MPD_HOST (environment) */
if ((value = g_getenv(MPD_HOST_ENV)))
options.host = g_strdup(value);
else
g_free(oldhost);
}
- /* get initial values for port from MPD_PORT (enviroment) */
+ /* get initial values for port from MPD_PORT (environment) */
if ((value = g_getenv(MPD_PORT_ENV)))
options.port = atoi(value);
diff --git a/src/screen.c b/src/screen.c
index b53fcf46694f52daa7931f1fc989a9f72d543e99..ea6c02310424b26abc0aa5e5e7b9c5aee7fcccfa 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
/** status message time [s] */
static const GTime SCREEN_STATUS_MESSAGE_TIME = 3;
-/* minumum window size */
+/* minimum window size */
static const int SCREEN_MIN_COLS = 14;
static const int SCREEN_MIN_ROWS = 5;
{
MEVENT event;
- /* retreive the mouse event from ncurses */
+ /* retrieve the mouse event from ncurses */
getmouse(&event);
/* calculate the selected row in the list window */
*row = event.y - screen.top_window.rows;
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 0d81874f96c35d476450e34c1376f8abfbf27ec1..40a0ed750ed128a34c62422a8409a576bd0f86fd 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
}
#ifndef NCMPC_MINI
-/* the playlist have been updated -> fix highlights */
+/* the playlist has been updated -> fix highlights */
static void
playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
{
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 50fb300596fda787f9a1ad2e1137f9808d7ad90f..325b4f45e779c37d37ea1078af1f3f8ed09d16b3 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
}
}
-/* the playlist have been updated -> fix highlights */
+/* the playlist has been updated -> fix highlights */
void
browser_playlist_changed(struct screen_browser *browser, mpdclient_t *c,
int event, gpointer data)
diff --git a/src/screen_file.c b/src/screen_file.c
index 09d8dee08820f662567ad96062eb7d2eb2858524..fdb8a5ae6b2f6f5177e6f974ba8f66bc54ac1dc4 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
file_repaint();
}
-/* the db have changed -> update the filelist */
+/* the db has changed -> update the filelist */
static void
file_changed_callback(mpdclient_t *c, G_GNUC_UNUSED int event,
G_GNUC_UNUSED gpointer data)
}
#ifndef NCMPC_MINI
-/* the playlist have been updated -> fix highlights */
+/* the playlist has been updated -> fix highlights */
static void
playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
{
} else
screen_status_printf(_("Database update started"));
- /* set updatingDb to make shure the browse callback gets called
+ /* set updatingDb to make sure the browse callback gets called
* even if the updated has finished before status is updated */
c->status->updatingDb = 1;
}
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index d5f12f8aab66adea648a4ffc496fe599896c455a..c37d3f17659b6ed7c4365e0ebc920244da366e05 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
char *filename;
if (check_user_conf_dir()) {
- screen_status_printf(_("Error: Unable to create direcory ~/.ncmpc - %s"),
+ screen_status_printf(_("Error: Unable to create directory ~/.ncmpc - %s"),
strerror(errno));
screen_bell();
return -1;
diff --git a/src/screen_search.c b/src/screen_search.c
index 9c06f5a728f8fe689543189b73bcb9b042f8463b..f9b51450b662fbc8b858ff4baf2df1e0f1f60189 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
search_repaint();
}
-/* the playlist have been updated -> fix highlights */
+/* the playlist has been updated -> fix highlights */
static void
playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
{
diff --git a/src/screen_utils.c b/src/screen_utils.c
index b4bd971f634b50a86dea4f2560f045c056acb022..53b6b0f8ac357e148f4dc6083d6f9450a0ff8ee5 100644 (file)
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
set_xterm_title(const char *format, ...)
{
/* the current xterm title exists under the WM_NAME property */
- /* and can be retreived with xprop -id $WINDOWID */
+ /* and can be retrieved with xprop -id $WINDOWID */
if (options.enable_xterm_title) {
if (g_getenv("WINDOWID")) {
diff --git a/src/screen_utils.h b/src/screen_utils.h
index bfaf7c239c2b5e70d9d5db31a9bc5d78e89a4ee8..6aacd5d62f7f37702146959e29a284aac3fd28ff 100644 (file)
--- a/src/screen_utils.h
+++ b/src/screen_utils.h
/* sound an audible and/or visible bell */
void screen_bell(void);
-/* read a characher from the status window */
+/* read a character from the status window */
int screen_getch(WINDOW *w, const char *prompt);
/* read a string from the status window */
diff --git a/src/utils.c b/src/utils.c
index 002ab46bbda43aac13b5e9ee5c807ff0b6705b0e..cd125099e67a72edd245608b411bcf0dbf7f14c0 100644 (file)
--- a/src/utils.c
+++ b/src/utils.c
return list;
}
-/* create a list suiteble for GCompletion from path */
+/* create a list suitable for GCompletion from path */
GList *
gcmp_list_from_path(mpdclient_t *c, const gchar *path, GList *list, gint types)
{
diff --git a/src/wreadln.c b/src/wreadln.c
index 7261bba418d2e86e0d8b91e9371df255ad0cd924..441e1ce589bb573d51e7551c26cc422ded187cf1 100644 (file)
--- a/src/wreadln.c
+++ b/src/wreadln.c
#endif
}
-/** returns the screen colum where the cursor is located */
+/** returns the screen column where the cursor is located */
static unsigned
cursor_column(const struct wreadln *wr)
{
/* turn off echo */
noecho();
- /* make shure the cursor is visible */
+ /* make sure the cursor is visible */
curs_set(1);
/* print prompt string */
if (prompt) {
waddstr(w, prompt);
waddstr(w, ": ");
}
- /* retrive y and x0 position */
+ /* retrieve y and x0 position */
getyx(w, wr.y, wr.x);
/* check the x1 value */
if (x1 <= wr.x || x1 > (unsigned)COLS)
#ifdef HAVE_GETMOUSE
case KEY_MOUSE: /* ignore mouse events */
#endif
- case ERR: /* ingnore errors */
+ case ERR: /* ignore errors */
break;
case TAB: