From: shdown Date: Tue, 24 Mar 2015 12:41:16 +0000 (+0300) Subject: i3bar: spelling fixes (2) X-Git-Tag: 4.10.1~27^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6922a820a661c15b07136bd3028ed1e35f552a5c;p=i3%2Fi3 i3bar: spelling fixes (2) --- diff --git a/i3bar/include/child.h b/i3bar/include/child.h index 09123062..b87cfaac 100644 --- a/i3bar/include/child.h +++ b/i3bar/include/child.h @@ -4,7 +4,7 @@ * i3bar - an xcb-based status- and ws-bar for i3 * © 2010-2012 Axel Wagner and contributors (see also: LICENSE) * - * child.c: Getting Input for the statusline + * child.c: Getting input for the statusline * */ #pragma once diff --git a/i3bar/include/ipc.h b/i3bar/include/ipc.h index d1fcb069..a60a1eba 100644 --- a/i3bar/include/ipc.h +++ b/i3bar/include/ipc.h @@ -25,7 +25,7 @@ int init_connection(const char *socket_path); void destroy_connection(void); /* - * Sends a Message to i3. + * Sends a message to i3. * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information) * */ diff --git a/i3bar/include/util.h b/i3bar/include/util.h index 52abc9b9..ac137998 100644 --- a/i3bar/include/util.h +++ b/i3bar/include/util.h @@ -26,7 +26,7 @@ } \ } while (0) -/* Securely fee single-linked list */ +/* Securely free single-linked list */ #define FREE_SLIST(l, type) \ do { \ type *walk = SLIST_FIRST(l); \ @@ -37,7 +37,7 @@ } \ } while (0) -/* Securely fee tail-queues */ +/* Securely free tail queue */ #define FREE_TAILQ(l, type) \ do { \ type *walk = TAILQ_FIRST(l); \ diff --git a/i3bar/include/xcb.h b/i3bar/include/xcb.h index d8411a0a..8e48c0c1 100644 --- a/i3bar/include/xcb.h +++ b/i3bar/include/xcb.h @@ -90,7 +90,7 @@ void kick_tray_clients(i3_output *output); /* * We need to set the _NET_SYSTEM_TRAY_COLORS atom on the tray selection window - * to make GTK+ 3 applets with Symbolic Icons visible. If the colors are unset, + * to make GTK+ 3 applets with symbolic icons visible. If the colors are unset, * they assume a light background. * See also https://bugzilla.gnome.org/show_bug.cgi?id=679591 * diff --git a/i3bar/src/child.c b/i3bar/src/child.c index 654efdca..a47ca4db 100644 --- a/i3bar/src/child.c +++ b/i3bar/src/child.c @@ -4,7 +4,7 @@ * i3bar - an xcb-based status- and ws-bar for i3 * © 2010-2012 Axel Wagner and contributors (see also: LICENSE) * - * child.c: Getting Input for the statusline + * child.c: Getting input for the statusline * */ #include diff --git a/i3bar/src/config.c b/i3bar/src/config.c index c568ac5b..5cc11a41 100644 --- a/i3bar/src/config.c +++ b/i3bar/src/config.c @@ -241,7 +241,7 @@ void parse_config_json(char *json) { state = yajl_parse(handle, (const unsigned char *)json, strlen(json)); - /* FIXME: Proper errorhandling for JSON-parsing */ + /* FIXME: Proper error handling for JSON parsing */ switch (state) { case yajl_status_ok: break; diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index c6e67eb6..ff6f5779 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -40,7 +40,7 @@ void got_command_reply(char *reply) { * */ void got_workspace_reply(char *reply) { - DLOG("Got Workspace-Data!\n"); + DLOG("Got workspace data!\n"); parse_workspaces_json(reply); draw_bars(false); } @@ -51,7 +51,7 @@ void got_workspace_reply(char *reply) { * */ void got_subscribe_reply(char *reply) { - DLOG("Got Subscribe Reply: %s\n", reply); + DLOG("Got subscribe reply: %s\n", reply); /* TODO: Error handling for subscribe commands */ } @@ -60,9 +60,9 @@ void got_subscribe_reply(char *reply) { * */ void got_output_reply(char *reply) { - DLOG("Parsing Outputs-JSON...\n"); + DLOG("Parsing outputs JSON...\n"); parse_outputs_json(reply); - DLOG("Reconfiguring Windows...\n"); + DLOG("Reconfiguring windows...\n"); realloc_sl_buffer(); reconfig_windows(false); @@ -104,7 +104,7 @@ void got_bar_config(char *reply) { FREE(config.command); } -/* Data-structure to easily call the reply handlers later */ +/* Data structure to easily call the reply handlers later */ handler_t reply_handlers[] = { &got_command_reply, &got_workspace_reply, @@ -120,16 +120,16 @@ handler_t reply_handlers[] = { * */ void got_workspace_event(char *event) { - DLOG("Got Workspace Event!\n"); + DLOG("Got workspace event!\n"); i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL); } /* - * Called, when an output event arrives (i.e. the screen-configuration changed) + * Called, when an output event arrives (i.e. the screen configuration changed) * */ void got_output_event(char *event) { - DLOG("Got Output Event!\n"); + DLOG("Got output event!\n"); i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_OUTPUTS, NULL); if (!config.disable_ws) { i3_send_msg(I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL); @@ -141,7 +141,7 @@ void got_output_event(char *event) { * */ void got_mode_event(char *event) { - DLOG("Got Mode Event!\n"); + DLOG("Got mode event!\n"); parse_mode_json(event); draw_bars(false); } @@ -180,7 +180,7 @@ void got_bar_config_update(char *event) { draw_bars(false); } -/* Data-structure to easily call the event handlers later */ +/* Data structure to easily call the event handlers later */ handler_t event_handlers[] = { &got_workspace_event, &got_output_event, @@ -201,7 +201,7 @@ void got_data(struct ev_loop *loop, ev_io *watcher, int events) { uint32_t header_len = strlen(I3_IPC_MAGIC) + sizeof(uint32_t) * 2; char *header = smalloc(header_len); - /* We first parse the fixed-length IPC-header, to know, how much data + /* We first parse the fixed-length IPC header, to know, how much data * we have to expect */ uint32_t rec = 0; while (rec < header_len) { @@ -268,7 +268,7 @@ void got_data(struct ev_loop *loop, ev_io *watcher, int events) { } /* - * Sends a Message to i3. + * Sends a message to i3. * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information) * */ diff --git a/i3bar/src/main.c b/i3bar/src/main.c index 34fc807b..a9a972db 100644 --- a/i3bar/src/main.c +++ b/i3bar/src/main.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) { } if (socket_path == NULL) { - ELOG("No Socket Path Specified, default to %s\n", i3_default_sock_path); + ELOG("No socket path specified, default to %s\n", i3_default_sock_path); socket_path = expand_path(i3_default_sock_path); } diff --git a/i3bar/src/mode.c b/i3bar/src/mode.c index 05f6de1a..0ff8ba4f 100644 --- a/i3bar/src/mode.c +++ b/i3bar/src/mode.c @@ -90,7 +90,7 @@ void parse_mode_json(char *json) { state = yajl_parse(handle, (const unsigned char *)json, strlen(json)); - /* FIXME: Propper errorhandling for JSON-parsing */ + /* FIXME: Propper error handling for JSON parsing */ switch (state) { case yajl_status_ok: break; diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c index fa981f4e..e3032526 100644 --- a/i3bar/src/workspaces.c +++ b/i3bar/src/workspaces.c @@ -135,7 +135,7 @@ static int workspaces_string_cb(void *params_, const unsigned char *val, size_t params->workspaces_walk->name_width = predict_text_width(params->workspaces_walk->name); - DLOG("Got Workspace canonical: %s, name: '%s', name_width: %d, glyphs: %zu\n", + DLOG("Got workspace canonical: %s, name: '%s', name_width: %d, glyphs: %zu\n", params->workspaces_walk->canonical_name, i3string_as_utf8(params->workspaces_walk->name), params->workspaces_walk->name_width, @@ -239,13 +239,13 @@ void parse_workspaces_json(char *json) { state = yajl_parse(handle, (const unsigned char *)json, strlen(json)); - /* FIXME: Propper errorhandling for JSON-parsing */ + /* FIXME: Propper error handling for JSON parsing */ switch (state) { case yajl_status_ok: break; case yajl_status_client_canceled: case yajl_status_error: - ELOG("Could not parse workspaces-reply!\n"); + ELOG("Could not parse workspaces reply!\n"); exit(EXIT_FAILURE); break; } diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 3360485a..ea9d1fce 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -34,7 +34,7 @@ #include "common.h" #include "libi3.h" -/* We save the Atoms in an easy to access array, indexed by an enum */ +/* We save the atoms in an easy to access array, indexed by an enum */ enum { #define ATOM_DO(name) name, #include "xcb_atoms.def" @@ -74,7 +74,7 @@ xcb_gcontext_t statusline_clear; xcb_pixmap_t statusline_pm; uint32_t statusline_width; -/* Event-Watchers, to interact with the user */ +/* Event watchers, to interact with the user */ ev_prepare *xcb_prep; ev_check *xcb_chk; ev_io *xcb_io; @@ -1020,7 +1020,7 @@ void xcb_chk_cb(struct ev_loop *loop, ev_check *watcher, int revents) { redraw_bars(); break; case XCB_BUTTON_PRESS: - /* Button press events are mouse-buttons clicked on one of our bars */ + /* Button press events are mouse buttons clicked on one of our bars */ handle_button((xcb_button_press_event_t *)event); break; case XCB_CLIENT_MESSAGE: @@ -1053,7 +1053,7 @@ void xcb_chk_cb(struct ev_loop *loop, ev_check *watcher, int revents) { } /* - * Dummy Callback. We only need this, so that the Prepare- and Check-Watchers + * Dummy callback. We only need this, so that the prepare and check watchers * are triggered * */ @@ -1066,7 +1066,7 @@ void xcb_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) { * */ char *init_xcb_early() { - /* FIXME: xcb_connect leaks Memory */ + /* FIXME: xcb_connect leaks memory */ xcb_connection = xcb_connect(NULL, &screen); if (xcb_connection_has_error(xcb_connection)) { ELOG("Cannot open display\n"); @@ -1109,7 +1109,7 @@ char *init_xcb_early() { root_screen->width_in_pixels, root_screen->height_in_pixels); - /* The various Watchers to communicate with xcb */ + /* The various watchers to communicate with xcb */ xcb_io = smalloc(sizeof(ev_io)); xcb_prep = smalloc(sizeof(ev_prepare)); xcb_chk = smalloc(sizeof(ev_check)); @@ -1303,7 +1303,7 @@ void init_tray(void) { /* * We need to set the _NET_SYSTEM_TRAY_COLORS atom on the tray selection window - * to make GTK+ 3 applets with Symbolic Icons visible. If the colors are unset, + * to make GTK+ 3 applets with symbolic icons visible. If the colors are unset, * they assume a light background. * See also https://bugzilla.gnome.org/show_bug.cgi?id=679591 *