summaryrefslogtreecommitdiff
path: root/atspi/atspi-action.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-action.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-action.c')
-rw-r--r--atspi/atspi-action.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/atspi/atspi-action.c b/atspi/atspi-action.c
index bc9cb7b7..fee13f03 100644
--- a/atspi/atspi-action.c
+++ b/atspi/atspi-action.c
@@ -95,7 +95,7 @@ atspi_action_get_action_description (AtspiAction *obj, int i, GError **error)
* there are multiple parts to a keybinding string (typically 3).
* They are delimited with ";". The first is the action's
* keybinding which is usable if the object implementing the action
- * is currently posted to the screen, e.g. if a menu is posted
+ * is currently posted to the screen, e.g. if a menu is posted
* then these keybindings for the corresponding menu-items are
* available. The second keybinding substring is the full key sequence
* necessary to post the action's widget and activate it, e.g. for
@@ -104,11 +104,11 @@ atspi_action_get_action_description (AtspiAction *obj, int i, GError **error)
* during the lifetime of the containing toplevel window as a whole,
* whereas the first keybinding string only works while the object
* implementing AtkAction is posted. The third (and optional)
- * keybinding string is the "keyboard shortcut" which invokes the
- * action without posting any menus.
+ * keybinding string is the "keyboard shortcut" which invokes the
+ * action without posting any menus.
* Meta-keys are indicated by the conventional strings
* "&lt;Control&gt;", "&lt;Alt&gt;", "&lt;Shift&gt;", "&lt;Mod2&gt;",
- * etc. (we use the same string as gtk_accelerator_name() in
+ * etc. (we use the same string as gtk_accelerator_name() in
* gtk+-2.X.
*
* Returns: a UTF-8 string which can be parsed to determine the @i-th
@@ -224,16 +224,15 @@ atspi_action_get_type (void)
{
static GType type = 0;
- if (!type) {
- static const GTypeInfo tinfo =
+ if (!type)
{
- sizeof (AtspiAction),
- (GBaseInitFunc) atspi_action_base_init,
- (GBaseFinalizeFunc) NULL,
- };
-
- type = g_type_register_static (G_TYPE_INTERFACE, "AtspiAction", &tinfo, 0);
-
- }
+ static const GTypeInfo tinfo = {
+ sizeof (AtspiAction),
+ (GBaseInitFunc) atspi_action_base_init,
+ (GBaseFinalizeFunc) NULL,
+ };
+
+ type = g_type_register_static (G_TYPE_INTERFACE, "AtspiAction", &tinfo, 0);
+ }
return type;
}