[gtk+] toolitemgroup: Update adjustment usage for sealing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] toolitemgroup: Update adjustment usage for sealing
- Date: Wed, 5 Jan 2011 13:40:35 +0000 (UTC)
commit 79cc672f3f6e4091cba23f413f4209fc9b8047ae
Author: Benjamin Otte <otte redhat com>
Date: Wed Jan 5 13:25:28 2011 +0100
toolitemgroup: Update adjustment usage for sealing
gtk/gtktoolitemgroup.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 20cc10b..47dc71f 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1112,13 +1112,13 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
if (gtk_widget_translate_coordinates
(widget, p, 0, 0, NULL, &y) && y < 0)
{
- y += adjustment->value;
+ y += gtk_adjustment_get_value (adjustment);
gtk_adjustment_clamp_page (adjustment, y, y + allocation.height);
}
else if (gtk_widget_translate_coordinates (widget, p, 0, allocation.height, NULL, &y) &&
y > p_allocation.height)
{
- y += adjustment->value;
+ y += gtk_adjustment_get_value (adjustment);
gtk_adjustment_clamp_page (adjustment, y - allocation.height, y);
}
}
@@ -1136,13 +1136,13 @@ gtk_tool_item_group_set_focus_cb (GtkWidget *window,
if (gtk_widget_translate_coordinates
(widget, p, 0, 0, &x, NULL) && x < 0)
{
- x += adjustment->value;
+ x += gtk_adjustment_get_value (adjustment);
gtk_adjustment_clamp_page (adjustment, x, x + allocation.width);
}
else if (gtk_widget_translate_coordinates (widget, p, allocation.width, 0, &x, NULL) &&
x > p_allocation.width)
{
- x += adjustment->value;
+ x += gtk_adjustment_get_value (adjustment);
gtk_adjustment_clamp_page (adjustment, x - allocation.width, x);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]