mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
layout: Update adjustment usage for sealing
This commit is contained in:
parent
fdedc8e376
commit
c6697af962
@ -878,8 +878,8 @@ gtk_layout_realize (GtkWidget *widget)
|
|||||||
|
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
gtk_widget_get_allocation (widget, &allocation);
|
||||||
|
|
||||||
attributes.x = - priv->hadjustment->value,
|
attributes.x = - gtk_adjustment_get_value (priv->hadjustment),
|
||||||
attributes.y = - priv->vadjustment->value;
|
attributes.y = - gtk_adjustment_get_value (priv->vadjustment);
|
||||||
attributes.width = MAX (priv->width, allocation.width);
|
attributes.width = MAX (priv->width, allocation.width);
|
||||||
attributes.height = MAX (priv->height, allocation.height);
|
attributes.height = MAX (priv->height, allocation.height);
|
||||||
attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |
|
attributes.event_mask = GDK_EXPOSURE_MASK | GDK_SCROLL_MASK |
|
||||||
@ -1112,8 +1112,8 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment,
|
|||||||
if (gtk_widget_get_realized (GTK_WIDGET (layout)))
|
if (gtk_widget_get_realized (GTK_WIDGET (layout)))
|
||||||
{
|
{
|
||||||
gdk_window_move (priv->bin_window,
|
gdk_window_move (priv->bin_window,
|
||||||
- priv->hadjustment->value,
|
- gtk_adjustment_get_value (priv->hadjustment),
|
||||||
- priv->vadjustment->value);
|
- gtk_adjustment_get_value (priv->vadjustment));
|
||||||
|
|
||||||
gdk_window_process_updates (priv->bin_window, TRUE);
|
gdk_window_process_updates (priv->bin_window, TRUE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user