summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-06-19 14:45:28 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2018-06-19 14:50:14 +0100
commit2ec7af3c47ebe5dcbb18e01cf5f6f5ac59c2d25a (patch)
treebab5a8852823984bb23d4c7228d24e24ee84d6c1
parent3ab86657041d46d32eb7cd2b8791bb2c8d6160a6 (diff)
downloadatk-2ec7af3c47ebe5dcbb18e01cf5f6f5ac59c2d25a.tar.gz
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.
-rw-r--r--atk/atkcomponent.c24
1 files 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