[gnome-notes/wip/albfan/typo: 2/2] Fix typo




commit ff5bdff939051c9d5c1f33ea4a8e864bc5ea3707
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Tue Aug 25 13:22:43 2020 +0200

    Fix typo

 src/libbiji/biji-info-set.h                    |  2 +-
 src/libbiji/biji-tracker.c                     | 24 ++++++++++++------------
 src/libbiji/biji-tracker.h                     |  4 ++--
 src/libbiji/provider/biji-local-note.c         |  2 +-
 src/libbiji/provider/biji-memo-provider.c      |  4 ++--
 src/libbiji/provider/biji-own-cloud-note.c     |  6 +++---
 src/libbiji/provider/biji-own-cloud-provider.c |  6 +++---
 7 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/src/libbiji/biji-info-set.h b/src/libbiji/biji-info-set.h
index 53ee842..7b0cb0d 100644
--- a/src/libbiji/biji-info-set.h
+++ b/src/libbiji/biji-info-set.h
@@ -41,7 +41,7 @@ typedef struct
   gint64    created;
 
 
-  /* only when ensuring ressource */
+  /* only when ensuring resource */
   gchar    *datasource_urn;
 
 
diff --git a/src/libbiji/biji-tracker.c b/src/libbiji/biji-tracker.c
index 85cb21d..53b1192 100644
--- a/src/libbiji/biji-tracker.c
+++ b/src/libbiji/biji-tracker.c
@@ -579,7 +579,7 @@ biji_note_delete_from_tracker (BijiNoteObj *note)
 
 
 void
-biji_tracker_trash_ressource (BijiManager *manager,
+biji_tracker_trash_resource (BijiManager *manager,
                               gchar *tracker_urn)
 {
   gchar *query;
@@ -590,7 +590,7 @@ biji_tracker_trash_ressource (BijiManager *manager,
 
 
 static void
-update_ressource (BijiTrackerFinisher *finisher, gchar *tracker_urn_uuid )
+update_resource (BijiTrackerFinisher *finisher, gchar *tracker_urn_uuid )
 {
   BijiManager *manager = finisher->manager;
   BijiInfoSet *info = finisher->info;
@@ -602,7 +602,7 @@ update_ressource (BijiTrackerFinisher *finisher, gchar *tracker_urn_uuid )
 
   content = tracker_str (info->content);
 
-  g_message ("Updating ressource <%s> %s", info->title, tracker_urn_uuid);
+  g_message ("Updating resource <%s> %s", info->title, tracker_urn_uuid);
 
   query = g_strdup_printf (
       "INSERT OR REPLACE { <%s> a nfo:Note , nie:DataObject ; "
@@ -640,7 +640,7 @@ push_new_note (BijiTrackerFinisher *finisher)
   g_autofree char *mtime = g_date_time_format_iso8601 (dt_mtime);
   gchar *query, *content;
 
-  g_message ("Creating ressource <%s> %s", info->title, info->url);
+  g_message ("Creating resource <%s> %s", info->title, info->url);
 
   content = tracker_str (info->content);
 
@@ -676,7 +676,7 @@ push_new_note (BijiTrackerFinisher *finisher)
 
 
 static void
-ensure_ressource_callback (GObject *source_object,
+ensure_resource_callback (GObject *source_object,
                            GAsyncResult *res,
                            gpointer user_data)
 {
@@ -695,13 +695,13 @@ ensure_ressource_callback (GObject *source_object,
 
   if (error)
   {
-    g_warning ("ENSURE RESSOURCE : error %s", error->message);
+    g_warning ("ENSURE RESOURCE : error %s", error->message);
     g_error_free (error);
     biji_tracker_finisher_free (finisher);
     return;
   }
 
-  /* Queried ressource found into tracker */
+  /* Queried resource found into tracker */
 
   if (cursor)
   {
@@ -714,7 +714,7 @@ ensure_ressource_callback (GObject *source_object,
 
 
   if (urn_found != NULL)
-    update_ressource (finisher, urn_found);
+    update_resource (finisher, urn_found);
 
   else
     push_new_note (finisher);
@@ -723,7 +723,7 @@ ensure_ressource_callback (GObject *source_object,
 
 
 void
-biji_tracker_ensure_ressource_from_info (BijiManager *manager,
+biji_tracker_ensure_resource_from_info (BijiManager *manager,
                                          BijiInfoSet *info)
 {
   gchar *query;
@@ -753,7 +753,7 @@ biji_tracker_ensure_ressource_from_info (BijiManager *manager,
                NULL);  // user_data);
 
   tracker_sparql_connection_query_async (
-      get_connection (manager), query, NULL, ensure_ressource_callback, finisher);
+      get_connection (manager), query, NULL, ensure_resource_callback, finisher);
 
   g_free (query);
 }
@@ -815,7 +815,7 @@ on_info_queried (GObject *source_object,
     return;
   }
 
-  /* Queried ressource found into tracker */
+  /* Queried resource found into tracker */
   if (cursor)
   {
     if (tracker_sparql_cursor_next (cursor, NULL, NULL))
@@ -832,7 +832,7 @@ on_info_queried (GObject *source_object,
       retval->created = iso8601_to_gint64 (tracker_sparql_cursor_get_string (cursor, 4, NULL));
 
 
-      /* Check if the ressource is up to date */
+      /* Check if the resource is up to date */
 
       if (finisher->info->mtime != retval->mtime)
         g_clear_pointer (&retval, biji_info_set_free);
diff --git a/src/libbiji/biji-tracker.h b/src/libbiji/biji-tracker.h
index 6fd56b5..e7cb4c6 100644
--- a/src/libbiji/biji-tracker.h
+++ b/src/libbiji/biji-tracker.h
@@ -97,11 +97,11 @@ void        biji_remove_notebook_from_note           (BijiNoteObj      *note,
 void        biji_note_delete_from_tracker              (BijiNoteObj *note);
 
 
-void        biji_tracker_trash_ressource               (BijiManager *manager,
+void        biji_tracker_trash_resource               (BijiManager *manager,
                                                         gchar *tracker_urn);
 
 
-void        biji_tracker_ensure_ressource_from_info    (BijiManager     *manager,
+void        biji_tracker_ensure_resource_from_info    (BijiManager     *manager,
                                                         BijiInfoSet *info);
 
 
diff --git a/src/libbiji/provider/biji-local-note.c b/src/libbiji/provider/biji-local-note.c
index 4c4ea9f..e58d565 100644
--- a/src/libbiji/provider/biji-local-note.c
+++ b/src/libbiji/provider/biji-local-note.c
@@ -101,7 +101,7 @@ local_note_save (BijiNoteObj *note)
   info->created = biji_note_obj_get_create_date (note);
   info->datasource_urn = g_strdup (prov_info->datasource);
 
-  biji_tracker_ensure_ressource_from_info  (biji_item_get_manager (item),
+  biji_tracker_ensure_resource_from_info  (biji_item_get_manager (item),
                                             info);
 }
 
diff --git a/src/libbiji/provider/biji-memo-provider.c b/src/libbiji/provider/biji-memo-provider.c
index 6e36a93..3c51e7f 100644
--- a/src/libbiji/provider/biji-memo-provider.c
+++ b/src/libbiji/provider/biji-memo-provider.c
@@ -174,7 +174,7 @@ create_note_from_item (BijiMemoItem *item)
 static void
 trash (gpointer urn_uuid, gpointer self)
 {
-  biji_tracker_trash_ressource (
+  biji_tracker_trash_resource (
       biji_provider_get_manager (BIJI_PROVIDER (self)), (gchar*) urn_uuid);
 }
 
@@ -198,7 +198,7 @@ handle_next_item (BijiMemoProvider *self)
     g_debug ("url=%s", item->set.url);
     g_debug ("content=%s\n================\n\n\n", item->set.content);
 
-    biji_tracker_ensure_ressource_from_info (
+    biji_tracker_ensure_resource_from_info (
     biji_provider_get_manager (BIJI_PROVIDER (self)), &item->set);
 
     //memo_item_free (item);
diff --git a/src/libbiji/provider/biji-own-cloud-note.c b/src/libbiji/provider/biji-own-cloud-note.c
index 08c3c27..4f5336e 100644
--- a/src/libbiji/provider/biji-own-cloud-note.c
+++ b/src/libbiji/provider/biji-own-cloud-note.c
@@ -112,7 +112,7 @@ ocloud_note_set_html (BijiNoteObj *note,
  * the real fix is to set mtime when save happens.. */
 
 static void
-ocloud_note_ensure_ressource (BijiNoteObj *note)
+ocloud_note_ensure_resource (BijiNoteObj *note)
 {
   BijiInfoSet *info;
   BijiItem *item;
@@ -137,7 +137,7 @@ ocloud_note_ensure_ressource (BijiNoteObj *note)
   info->created = biji_note_obj_get_create_date (note);
   info->datasource_urn = g_strdup (provider->datasource);
 
-  biji_tracker_ensure_ressource_from_info  (biji_item_get_manager (item),
+  biji_tracker_ensure_resource_from_info  (biji_item_get_manager (item),
                                             info);
 }
 
@@ -175,7 +175,7 @@ on_file_updated_cb (GObject *source_object,
       return;
     }
 
-  ocloud_note_ensure_ressource (BIJI_NOTE_OBJ (self));
+  ocloud_note_ensure_resource (BIJI_NOTE_OBJ (self));
 }
 
 static void
diff --git a/src/libbiji/provider/biji-own-cloud-provider.c b/src/libbiji/provider/biji-own-cloud-provider.c
index 8f22917..fb5af59 100644
--- a/src/libbiji/provider/biji-own-cloud-provider.c
+++ b/src/libbiji/provider/biji-own-cloud-provider.c
@@ -233,10 +233,10 @@ on_content (GObject *source,
   {
      item->set.content = contents;
      create_note_from_item (item);
-     biji_tracker_ensure_ressource_from_info (
+     biji_tracker_ensure_resource_from_info (
        biji_provider_get_manager (BIJI_PROVIDER (self)), &item->set);
 
-     // TODO --> ensure_ressource callback.... o_cloud_item_free (item);
+     // TODO --> ensure_resource callback.... o_cloud_item_free (item);
   }
 
   handle_next_item (self);
@@ -292,7 +292,7 @@ check_info_maybe_read_file (BijiInfoSet *info,
 static void
 trash (gpointer urn_uuid, gpointer self)
 {
-  biji_tracker_trash_ressource (
+  biji_tracker_trash_resource (
       biji_provider_get_manager (BIJI_PROVIDER (self)), (gchar*) urn_uuid);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]