]> Pileus Git - ~andy/gtk/commitdiff
toolitemgroup: Update adjustment usage for sealing
authorBenjamin Otte <otte@redhat.com>
Wed, 5 Jan 2011 12:25:28 +0000 (13:25 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 5 Jan 2011 13:30:58 +0000 (14:30 +0100)
gtk/gtktoolitemgroup.c

index 20cc10b7970ead19cb3ca37294eb723e12db6691..47dc71f8ccd4e2809060e61b9456e102b6843e29 100644 (file)
@@ -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);
             }