[gtk+] layout: Update adjustment usage for sealing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] layout: Update adjustment usage for sealing
- Date: Wed, 5 Jan 2011 13:40:30 +0000 (UTC)
commit c6697af962c042a939d6e8954c4cdd744bfea9d3
Author: Benjamin Otte <otte redhat com>
Date: Wed Jan 5 13:17:18 2011 +0100
layout: Update adjustment usage for sealing
gtk/gtklayout.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index bf43bd8..f3dae47 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -878,8 +878,8 @@ gtk_layout_realize (GtkWidget *widget)
gtk_widget_get_allocation (widget, &allocation);
- attributes.x = - priv->hadjustment->value,
- attributes.y = - priv->vadjustment->value;
+ attributes.x = - gtk_adjustment_get_value (priv->hadjustment),
+ attributes.y = - gtk_adjustment_get_value (priv->vadjustment);
attributes.width = MAX (priv->width, allocation.width);
attributes.height = MAX (priv->height, allocation.height);
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)))
{
gdk_window_move (priv->bin_window,
- - priv->hadjustment->value,
- - priv->vadjustment->value);
+ - gtk_adjustment_get_value (priv->hadjustment),
+ - gtk_adjustment_get_value (priv->vadjustment));
gdk_window_process_updates (priv->bin_window, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]