From 2ec7af3c47ebe5dcbb18e01cf5f6f5ac59c2d25a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 19 Jun 2018 14:45:28 +0100 Subject: Fix the coding style for the Component scroll methods The coding style needs some tweaking to fit in with the rest of the code base. --- atk/atkcomponent.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/atk/atkcomponent.c b/atk/atkcomponent.c index c69124b..e4a9c63 100644 --- a/atk/atkcomponent.c +++ b/atk/atkcomponent.c @@ -570,12 +570,13 @@ atk_component_set_size (AtkComponent *component, * @component in its parent, this only makes the parents scroll so that the * object shows up on the screen, given its current position within the parents. * - * Since: 2.30 - * * Returns: whether scrolling was successful. + * + * Since: 2.30 */ gboolean -atk_component_scroll_to (AtkComponent *component, AtkScrollType type) +atk_component_scroll_to (AtkComponent *component, + AtkScrollType type) { AtkComponentIface *iface = NULL; g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE); @@ -584,8 +585,8 @@ atk_component_scroll_to (AtkComponent *component, AtkScrollType type) if (iface->scroll_to) return (iface->scroll_to) (component, type); - else - return FALSE; + + return FALSE; } /** @@ -599,12 +600,15 @@ atk_component_scroll_to (AtkComponent *component, AtkScrollType type) * Makes an object visible on the screen at a given position by scrolling all * necessary parents. * - * Since: 2.30 - * * Returns: whether scrolling was successful. + * + * Since: 2.30 */ gboolean -atk_component_scroll_to_point (AtkComponent *component, AtkCoordType coords, gint x, gint y) +atk_component_scroll_to_point (AtkComponent *component, + AtkCoordType coords, + gint x, + gint y) { AtkComponentIface *iface = NULL; g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE); @@ -613,8 +617,8 @@ atk_component_scroll_to_point (AtkComponent *component, AtkCoordType coords, gin if (iface->scroll_to_point) return (iface->scroll_to_point) (component, coords, x, y); - else - return FALSE; + + return FALSE; } static gboolean -- cgit v1.2.1