[gtk+] Typo fixes



commit 804d330195f4e3a777b64a49d70059af2742f1c0
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 10 22:46:02 2016 -0500

    Typo fixes
    
    Fix s/occurence/occurrence in many places.

 README.in               |    2 +-
 gtk/compose-parse.py    |    4 ++--
 gtk/gtkcssprovider.c    |    8 ++++----
 gtk/gtkplacessidebar.c  |    8 ++++----
 gtk/gtkprintoperation.h |    2 +-
 gtk/gtktextbuffer.c     |    2 +-
 gtk/gtktexttag.c        |    2 +-
 m4macros/gtk-3.0.m4     |    2 +-
 8 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/README.in b/README.in
index 4164926..d0884ec 100644
--- a/README.in
+++ b/README.in
@@ -53,7 +53,7 @@ In the bug report please include:
   of software that can be downloaded.
 
 * If the bug was a crash, the exact text that was printed out
-  when the crash occured.
+  when the crash occurred.
 
 * Further information such as stack traces may be useful, but
   is not necessary.
diff --git a/gtk/compose-parse.py b/gtk/compose-parse.py
index 16cc500..9a6513a 100755
--- a/gtk/compose-parse.py
+++ b/gtk/compose-parse.py
@@ -811,9 +811,9 @@ if opt_gtk:
        ct_index = start_offset
        for line_num in range(len(compose_table)):
                for i in range(WIDTHOFCOMPOSETABLE):
-                       occurences = compose_table[line_num][i+1]
+                       occurrences = compose_table[line_num][i+1]
                        compose_table[line_num][i+1] = ct_index
-                       ct_index += occurences * (i+2)
+                       ct_index += occurrences * (i+2)
 
        for sequence in xorg_compose_sequences:
                ct_second_part.append(map(convert_UnotationToHex, sequence))
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 1b2962c..ec2982b 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -215,7 +215,7 @@ gtk_css_provider_class_init (GtkCssProviderClass *klass)
    * @section: section the error happened in
    * @error: The parsing error
    *
-   * Signals that a parsing error occured. the @path, @line and @position
+   * Signals that a parsing error occurred. the @path, @line and @position
    * describe the actual location of the error as accurately as possible.
    *
    * Parsing errors are never fatal, so the parsing will resume after
@@ -1810,7 +1810,7 @@ gtk_css_provider_load_internal (GtkCssProvider *css_provider,
  *
  * Returns: %TRUE. The return value is deprecated and %FALSE will only be
  *     returned for backwards compatibility reasons if an @error is not 
- *     %NULL and a loading error occured. To track errors while loading
+ *     %NULL and a loading error occurred. To track errors while loading
  *     CSS, connect to the #GtkCssProvider::parsing-error signal.
  **/
 gboolean
@@ -1858,7 +1858,7 @@ gtk_css_provider_load_from_data (GtkCssProvider  *css_provider,
  *
  * Returns: %TRUE. The return value is deprecated and %FALSE will only be
  *     returned for backwards compatibility reasons if an @error is not 
- *     %NULL and a loading error occured. To track errors while loading
+ *     %NULL and a loading error occurred. To track errors while loading
  *     CSS, connect to the #GtkCssProvider::parsing-error signal.
  **/
 gboolean
@@ -1891,7 +1891,7 @@ gtk_css_provider_load_from_file (GtkCssProvider  *css_provider,
  *
  * Returns: %TRUE. The return value is deprecated and %FALSE will only be
  *     returned for backwards compatibility reasons if an @error is not 
- *     %NULL and a loading error occured. To track errors while loading
+ *     %NULL and a loading error occurred. To track errors while loading
  *     CSS, connect to the #GtkCssProvider::parsing-error signal.
  **/
 gboolean
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 760b607..16d2ef2 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -165,7 +165,7 @@ struct _GtkPlacesSidebar {
 
   guint mounting               : 1;
   guint  drag_data_received    : 1;
-  guint drop_occured           : 1;
+  guint drop_occurred          : 1;
   guint show_recent_set        : 1;
   guint show_recent            : 1;
   guint show_desktop_set       : 1;
@@ -1877,7 +1877,7 @@ drag_data_received_callback (GtkWidget        *list_box,
 
   g_signal_stop_emission_by_name (list_box, "drag-data-received");
 
-  if (!sidebar->drop_occured)
+  if (!sidebar->drop_occurred)
     return;
 
   target_row = gtk_list_box_get_row_at_y (GTK_LIST_BOX (sidebar->list_box), y);
@@ -1949,7 +1949,7 @@ drag_data_received_callback (GtkWidget        *list_box,
     }
 
 out:
-  sidebar->drop_occured = FALSE;
+  sidebar->drop_occurred = FALSE;
   gtk_drag_finish (context, success, FALSE, time);
   stop_drop_feedback (sidebar);
   g_free (target_uri);
@@ -2012,7 +2012,7 @@ drag_drop_callback (GtkWidget      *list_box,
   gboolean retval = FALSE;
   GtkPlacesSidebar *sidebar = GTK_PLACES_SIDEBAR (user_data);
 
-  sidebar->drop_occured = TRUE;
+  sidebar->drop_occurred = TRUE;
   retval = get_drag_data (sidebar->list_box, context, time);
   g_signal_stop_emission_by_name (sidebar->list_box, "drag-drop");
 
diff --git a/gtk/gtkprintoperation.h b/gtk/gtkprintoperation.h
index 1a906e0..3ae0ed4 100644
--- a/gtk/gtkprintoperation.h
+++ b/gtk/gtkprintoperation.h
@@ -81,7 +81,7 @@ typedef enum {
 
 /**
  * GtkPrintOperationResult:
- * @GTK_PRINT_OPERATION_RESULT_ERROR: An error has occured.
+ * @GTK_PRINT_OPERATION_RESULT_ERROR: An error has occurred.
  * @GTK_PRINT_OPERATION_RESULT_APPLY: The print settings should be stored.
  * @GTK_PRINT_OPERATION_RESULT_CANCEL: The print operation has been canceled,
  *     the print settings should not be stored.
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 20ced2a..4220fa4 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -3839,7 +3839,7 @@ gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer,
   /* When pasting with the cursor inside the selection area, you
    * replace the selection with the new text, otherwise, you
    * simply insert the new text at the point where the click
-   * occured, unselecting any selected text. The replace_selection
+   * occurred, unselecting any selected text. The replace_selection
    * flag toggles this behavior.
    */
   data->replace_selection = FALSE;
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c
index 13d234f..1f20889 100644
--- a/gtk/gtktexttag.c
+++ b/gtk/gtktexttag.c
@@ -860,7 +860,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
    * @tag: the #GtkTextTag on which the signal is emitted
    * @object: the object the event was fired from (typically a #GtkTextView)
    * @event: the event which triggered the signal
-   * @iter: a #GtkTextIter pointing at the location the event occured
+   * @iter: a #GtkTextIter pointing at the location the event occurred
    *
    * The ::event signal is emitted when an event occurs on a region of the
    * buffer marked with this tag.
diff --git a/m4macros/gtk-3.0.m4 b/m4macros/gtk-3.0.m4
index 4838f16..4fc9906 100644
--- a/m4macros/gtk-3.0.m4
+++ b/m4macros/gtk-3.0.m4
@@ -178,7 +178,7 @@ main ()
           echo "*** If you have an old version installed, it is best to remove it, although"
           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
         [ echo "*** The test program failed to compile or link. See the file config.log for the"
-          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
+          echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed."])
           CFLAGS="$ac_save_CFLAGS"
           LIBS="$ac_save_LIBS"
        fi


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