[gnome-software] trivial: Fix typos in comments
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix typos in comments
- Date: Wed, 22 Nov 2017 03:07:17 +0000 (UTC)
commit f71207010785e8b2875fb68466920cb1300f9c8b
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Nov 22 16:07:02 2017 +1300
trivial: Fix typos in comments
lib/gs-app.c | 2 +-
lib/gs-auth.c | 2 +-
lib/gs-plugin.c | 8 ++++----
lib/gs-self-test.c | 2 +-
lib/gs-utils.c | 2 +-
src/gs-css.c | 2 +-
src/gs-moderate-page.c | 2 +-
src/gs-overview-page.c | 2 +-
src/gs-update-monitor.c | 4 ++--
src/gs-updates-page.c | 2 +-
10 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index e757572..16526c2 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -1066,7 +1066,7 @@ gs_app_set_allow_cancel (GsApp *app, gboolean allow_cancel)
* All applications start in state %AS_APP_STATE_UNKNOWN,
* but the frontend is not supposed to see GsApps with this state.
*
- * Plugins are reponsible for changing the state to one of the other
+ * Plugins are responsible for changing the state to one of the other
* states before the GsApp is passed to the frontend.
*
* |[
diff --git a/lib/gs-auth.c b/lib/gs-auth.c
index e780a2a..a60175f 100644
--- a/lib/gs-auth.c
+++ b/lib/gs-auth.c
@@ -308,7 +308,7 @@ gs_auth_add_flags (GsAuth *auth, GsAuthFlags flags)
* @auth: a #GsAuth
* @flags: a #GsAuthFlags, e.g. %GS_AUTH_FLAG_REMEMBER
*
- * Finds ouf if the authentication has a flag.
+ * Finds out if the authentication has a flag.
*
* Returns: %TRUE if set
*/
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index 8bdced4..9b1fe7a 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -270,7 +270,7 @@ gs_plugin_get_data (GsPlugin *plugin)
* This is normally called in gs_plugin_initialize() and the data should
* not be manually freed.
*
- * Returns: the #GsPluginData, cleared to NUL butes
+ * Returns: the #GsPluginData, cleared to NUL bytes
*
* Since: 3.22
**/
@@ -1013,7 +1013,7 @@ gs_plugin_app_launch_cb (gpointer user_data)
* @app: a #GsApp
* @error: a #GError, or %NULL
*
- * Launches the application using GAppInfo.
+ * Launches the application using #GAppInfo.
*
* Returns: %TRUE for success
*
@@ -1140,7 +1140,7 @@ gs_plugin_download_chunk_cb (SoupMessage *msg, SoupBuffer *chunk,
if (header_size < body_length)
return;
- /* calulate percentage */
+ /* calculate percentage */
percentage = (guint) ((100 * body_length) / header_size);
g_debug ("%s progress: %u%%", gs_app_get_id (helper->app), percentage);
gs_app_set_progress (helper->app, percentage);
@@ -1563,7 +1563,7 @@ gs_plugin_cache_add (GsPlugin *plugin, const gchar *key, GsApp *app)
* likes. Using this function may mean the front-end and the plugin
* may be operating on a different GsApp with the same cache ID.
*
- * Most plugins do not need to call this funtion; if a suitable cache
+ * Most plugins do not need to call this function; if a suitable cache
* key is being used the old cache item can remain.
*
* Since: 3.22
diff --git a/lib/gs-self-test.c b/lib/gs-self-test.c
index 2d8b63d..1ac0c47 100644
--- a/lib/gs-self-test.c
+++ b/lib/gs-self-test.c
@@ -262,7 +262,7 @@ gs_plugin_func (void)
g_assert_cmpstr (gs_app_get_id (gs_app_list_index (list_dup, 0)), ==, "a");
g_object_unref (list_dup);
- /* test removing obects */
+ /* test removing objects */
app = gs_app_new ("a");
list_remove = gs_app_list_new ();
gs_app_list_add (list_remove, app);
diff --git a/lib/gs-utils.c b/lib/gs-utils.c
index 257adc6..c1d86df 100644
--- a/lib/gs-utils.c
+++ b/lib/gs-utils.c
@@ -230,7 +230,7 @@ gs_utils_get_cache_filename (const gchar *kind,
* @error: A #GError, or %NULL
*
* This SHA1 hash is composed of the contents of machine-id and your
- * usename and is also salted with a hardcoded value.
+ * username and is also salted with a hardcoded value.
*
* This provides an identifier that can be used to identify a specific
* user on a machine, allowing them to cast only one vote or perform
diff --git a/src/gs-css.c b/src/gs-css.c
index b4d2777..4bd2e11 100644
--- a/src/gs-css.c
+++ b/src/gs-css.c
@@ -265,7 +265,7 @@ gs_css_validate (GsCss *self, GError **error)
* gs_css_set_rewrite_func:
* @self: a #GsCss
* @func: a #GsCssRewriteFunc or %NULL
- * @user_data: userr data to pass to @func
+ * @user_data: user data to pass to @func
*
* Sets a function to be used when rewriting CSS before it is parsed.
*
diff --git a/src/gs-moderate-page.c b/src/gs-moderate-page.c
index c264e29..1ad3540 100644
--- a/src/gs-moderate-page.c
+++ b/src/gs-moderate-page.c
@@ -115,7 +115,7 @@ gs_moderate_page_review_clicked_cb (GsReviewRow *row,
self);
gtk_widget_set_visible (GTK_WIDGET (row), FALSE);
- /* if there are no more visble rows, hide the app */
+ /* if there are no more visible rows, hide the app */
gs_moderate_page_perhaps_hide_app_row (self, app);
}
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index 7a88111..a7b677b 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -130,7 +130,7 @@ gs_overview_page_decrement_action_cnt (GsOverviewPage *self)
{
GsOverviewPagePrivate *priv = gs_overview_page_get_instance_private (self);
- /* every job increcements this */
+ /* every job increments this */
if (priv->action_cnt == 0) {
g_warning ("action_cnt already zero!");
return;
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index 1ba1c56..621885b 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -239,7 +239,7 @@ get_system_finished_cb (GObject *object, GAsyncResult *res, gpointer data)
return;
}
- /* might be alrady showing, so just withdraw it and re-issue it */
+ /* might be already showing, so just withdraw it and re-issue it */
g_application_withdraw_notification (monitor->application, "eol");
/* do not show when the main window is active */
@@ -762,7 +762,7 @@ allow_updates_notify_cb (GsPluginLoader *plugin_loader,
{
if (gs_plugin_loader_get_allow_updates (plugin_loader)) {
/* We restart the updates check here to avoid the user
- * pontentially waiting for the hourly check */
+ * potentially waiting for the hourly check */
restart_updates_check (monitor);
restart_upgrades_check (monitor);
} else {
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 7574845..0845ff5 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -540,7 +540,7 @@ gs_updates_page_set_state (GsUpdatesPage *self, GsUpdatesPageState state)
static void
gs_updates_page_decrement_refresh_count (GsUpdatesPage *self)
{
- /* every job increcements this */
+ /* every job increments this */
if (self->action_cnt == 0) {
g_warning ("action_cnt already zero!");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]