summaryrefslogtreecommitdiff
path: root/atspi/atspi-editabletext.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:44:48 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:13 -0600
commitb10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch)
treed560f8449f3ae75fea343887dcb6d5f4df7b434c /atspi/atspi-editabletext.c
parentbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff)
downloadat-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
Diffstat (limited to 'atspi/atspi-editabletext.c')
-rw-r--r--atspi/atspi-editabletext.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/atspi/atspi-editabletext.c b/atspi/atspi-editabletext.c
index 75af1593..a9b8c39b 100644
--- a/atspi/atspi-editabletext.c
+++ b/atspi/atspi-editabletext.c
@@ -96,7 +96,7 @@ atspi_editable_text_set_text_contents (AtspiEditableText *obj,
* atspi_editable_text_insert_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
* @position: a #gint indicating the character offset at which to insert
- * the new text.
+ * the new text.
* @text: a string representing the text to insert, in UTF-8 encoding.
* @length: the number of characters of text to insert, in bytes. If the
* byte count of text is less than or equal to length, the entire contents
@@ -136,7 +136,7 @@ atspi_editable_text_insert_text (AtspiEditableText *obj,
*
* Copies text from an #AtspiEditableText object into the system clipboard.
*
- * see: #atspi_editable_text_paste_text
+ * see: #atspi_editable_text_paste_text
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
**/
@@ -221,7 +221,7 @@ atspi_editable_text_delete_text (AtspiEditableText *obj,
* atspi_editable_text_paste_text:
* @obj: a pointer to the #AtspiEditableText object to modify.
* @position: a #gint indicating the character offset at which to insert
- * the new text.
+ * the new text.
*
* Inserts text from the system clipboard into an #AtspiEditableText object.
* As with all character offsets, the specified @position may not be the
@@ -255,16 +255,15 @@ atspi_editable_text_get_type (void)
{
static GType type = 0;
- if (!type) {
- static const GTypeInfo tinfo =
+ if (!type)
{
- sizeof (AtspiEditableText),
- (GBaseInitFunc) atspi_editable_text_base_init,
- (GBaseFinalizeFunc) NULL,
- };
-
- type = g_type_register_static (G_TYPE_INTERFACE, "AtspiEditableText", &tinfo, 0);
-
- }
+ static const GTypeInfo tinfo = {
+ sizeof (AtspiEditableText),
+ (GBaseInitFunc) atspi_editable_text_base_init,
+ (GBaseFinalizeFunc) NULL,
+ };
+
+ type = g_type_register_static (G_TYPE_INTERFACE, "AtspiEditableText", &tinfo, 0);
+ }
return type;
}