static gboolean
viewport_set_hadjustment_values (GtkClutterViewport *viewport,
- guint width)
+ gfloat width)
{
GtkClutterViewportPrivate *priv = viewport->priv;
GtkAdjustment *h_adjust = priv->h_adjustment;
static gboolean
viewport_set_vadjustment_values (GtkClutterViewport *viewport,
- guint height)
+ gfloat height)
{
GtkClutterViewportPrivate *priv = viewport->priv;
GtkAdjustment *v_adjust = priv->v_adjustment;
GtkClutterViewportPrivate *priv = viewport->priv;
GtkAdjustment **adj_p;
gboolean value_changed = FALSE;
- guint width, height;
+ gfloat width, height;
adj_p = (orientation == GTK_ORIENTATION_HORIZONTAL) ? &priv->h_adjustment
: &priv->v_adjustment;
NULL, NULL,
&alloc_width, &alloc_height);
- child_allocation.x1 = clutter_actor_get_xu (priv->child);
- child_allocation.y1 = clutter_actor_get_yu (priv->child);
+ child_allocation.x1 = clutter_actor_get_x (priv->child);
+ child_allocation.y1 = clutter_actor_get_y (priv->child);
child_allocation.x2 = child_allocation.x1 + alloc_width;
child_allocation.y2 = child_allocation.y1 + alloc_height;