summaryrefslogtreecommitdiff
path: root/gtk/gtkfixed.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-08-25 14:59:01 +0200
committerTimm Bäder <mail@baedert.org>2019-09-09 17:36:25 +0200
commit31efc882db2ba9fea7b7031d5ecdf2f314ce2c1c (patch)
tree1a58c6f27590370d6f0f3931ce50f4835ebbdbb3 /gtk/gtkfixed.c
parent1db59d1c89580970552e63e84ff43a3e0553d1eb (diff)
downloadgtk+-31efc882db2ba9fea7b7031d5ecdf2f314ce2c1c.tar.gz
fixed: x/y passed to get_child_position are not optional
Diffstat (limited to 'gtk/gtkfixed.c')
-rw-r--r--gtk/gtkfixed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index dc6d34249c..ce14141848 100644
--- a/gtk/gtkfixed.c
+++ b/gtk/gtkfixed.c
@@ -183,8 +183,8 @@ gtk_fixed_put (GtkFixed *fixed,
void
gtk_fixed_get_child_position (GtkFixed *fixed,
GtkWidget *widget,
- gint *x,
- gint *y)
+ int *x,
+ int *y)
{
GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedLayoutChild *child_info;
@@ -193,16 +193,16 @@ gtk_fixed_get_child_position (GtkFixed *fixed,
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (GTK_IS_WIDGET (widget));
+ g_return_if_fail (x != NULL);
+ g_return_if_fail (y != NULL);
g_return_if_fail (gtk_widget_get_parent (widget) == GTK_WIDGET (fixed));
child_info = GTK_FIXED_LAYOUT_CHILD (gtk_layout_manager_get_layout_child (priv->layout, widget));
transform = gtk_fixed_layout_child_get_transform (child_info);
gsk_transform_to_translate (transform, &pos_x, &pos_y);
- if (x != NULL)
- *x = floorf (pos_x);
- if (y != NULL)
- *y = floorf (pos_y);
+ *x = floorf (pos_x);
+ *y = floorf (pos_y);
}
/**