summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorEdward Betts <edward@4angle.com>2017-11-23 17:41:52 +0000
committerDave Davenport <DaveDavenport@users.noreply.github.com>2017-11-23 18:41:52 +0100
commit79adae77d72be3de96d1c4e6d53b6bae4cb7e00e (patch)
tree9020f6a7d173961e12a70682757242fa546124e8 /source
parent54c45f8f5fa98a6becb7bedeb06bd8062dcea513 (diff)
Correct spelling mistakes. (#722)
Diffstat (limited to 'source')
-rw-r--r--source/dialogs/run.c2
-rw-r--r--source/dialogs/ssh.c2
-rw-r--r--source/helper.c2
-rw-r--r--source/view.c2
-rw-r--r--source/widgets/listview.c4
-rw-r--r--source/widgets/textbox.c2
-rw-r--r--source/widgets/widget.c2
7 files changed, 8 insertions, 8 deletions
diff --git a/source/dialogs/run.c b/source/dialogs/run.c
index 8d7070ec..0465b9f7 100644
--- a/source/dialogs/run.c
+++ b/source/dialogs/run.c
@@ -56,7 +56,7 @@
#include "timings.h"
/**
- * Name of the history file where previously choosen commands are stored.
+ * Name of the history file where previously chosen commands are stored.
*/
#define RUN_CACHE_FILE "rofi-3.runcache"
diff --git a/source/dialogs/ssh.c b/source/dialogs/ssh.c
index cb8216cb..8b20ccb8 100644
--- a/source/dialogs/ssh.c
+++ b/source/dialogs/ssh.c
@@ -57,7 +57,7 @@
#include "dialogs/ssh.h"
/**
- * Name of the history file where previously choosen hosts are stored.
+ * Name of the history file where previously chosen hosts are stored.
*/
#define SSH_CACHE_FILE "rofi-2.sshcache"
diff --git a/source/helper.c b/source/helper.c
index 3f2d59aa..78c14d67 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -865,7 +865,7 @@ static int rofi_scorer_get_score_for ( enum CharClass prev, enum CharClass curr
* @param pattern The user input to match against.
* @param plen Pattern length.
* @param str The input to match against pattern.
- * @param slen Lenght of str.
+ * @param slen Length of str.
*
* rofi_scorer_fuzzy_evaluate implements a global sequence alignment algorithm to find the maximum accumulated score by
* aligning `pattern` to `str`. It applies when `pattern` is a subsequence of `str`.
diff --git a/source/view.c b/source/view.c
index 4f97db37..5881a459 100644
--- a/source/view.c
+++ b/source/view.c
@@ -1827,7 +1827,7 @@ void rofi_view_workers_initialize ( void )
// We are allowed to have
g_thread_pool_set_max_threads ( tpool, config.threads, &error );
}
- // If error occured during setup of pool, tell user and exit.
+ // If error occurred during setup of pool, tell user and exit.
if ( error != NULL ) {
g_warning ( "Failed to setup thread pool: '%s'", error->message );
g_error_free ( error );
diff --git a/source/widgets/listview.c b/source/widgets/listview.c
index 8e911c67..6705cbed 100644
--- a/source/widgets/listview.c
+++ b/source/widgets/listview.c
@@ -206,7 +206,7 @@ static void barview_draw ( widget *wid, cairo_t *draw )
int right_offset = lv->widget.w - widget_padding_get_right ( wid );
int top_offset = widget_padding_get_top ( wid );
if ( lv->cur_elements > 0 ) {
- // Set new x/y possition.
+ // Set new x/y position.
unsigned int max = MIN ( lv->cur_elements, lv->req_elements - offset );
if ( lv->rchanged ) {
int first = TRUE;
@@ -302,7 +302,7 @@ static void listview_draw ( widget *wid, cairo_t *draw )
}
*/
if ( lv->cur_elements > 0 && lv->max_rows > 0 ) {
- // Set new x/y possition.
+ // Set new x/y position.
unsigned int max = MIN ( lv->cur_elements, lv->req_elements - offset );
if ( lv->rchanged ) {
unsigned int width = lv->widget.w - spacing_hori * ( lv->cur_columns - 1 );
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index 4de50d32..5f588bd9 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -108,7 +108,7 @@ static WidgetTriggerActionResult textbox_editable_trigger_action ( widget *wid,
case MOUSE_CLICK_DOWN:
{
gint i;
- // substract padding on left.
+ // subtract padding on left.
x -= widget_padding_get_left ( wid );
gint max = textbox_get_font_width ( tb );
// Right of text, move to end.
diff --git a/source/widgets/widget.c b/source/widgets/widget.c
index 774ab502..f37648b0 100644
--- a/source/widgets/widget.c
+++ b/source/widgets/widget.c
@@ -185,7 +185,7 @@ void widget_draw ( widget *widget, cairo_t *d )
}
// Background painting.
- // Set new x/y possition.
+ // Set new x/y position.
cairo_translate ( d, widget->x, widget->y );
cairo_set_line_width ( d, 0 );
// Set outlines.