summaryrefslogtreecommitdiff
path: root/gtk/gtktoolpalette.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-27 03:28:22 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-27 03:28:22 +0200
commit145b59b4b1f096a361dfbf626b8c5a2876b159a5 (patch)
treec197642ff7f48fcaf0c2a7389f7cd5aeeb897092 /gtk/gtktoolpalette.c
parent271adacfadfdd81b27fb12356fe20cde3094de37 (diff)
downloadgtk+-145b59b4b1f096a361dfbf626b8c5a2876b159a5.tar.gz
toolpalette: Rename variable
The variable that holds the total size for all widget allocations shouldn't be called page_start.
Diffstat (limited to 'gtk/gtktoolpalette.c')
-rw-r--r--gtk/gtktoolpalette.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index be6297ab19..0dd9b21be6 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -473,7 +473,7 @@ gtk_tool_palette_size_allocate (GtkWidget *widget,
gint remaining_space = 0;
gint expand_space = 0;
- gint page_start, page_size = 0;
+ gint total_size, page_size;
gint offset = 0;
guint i;
guint border_width;
@@ -652,14 +652,14 @@ gtk_tool_palette_size_allocate (GtkWidget *widget,
child_allocation.y += border_width;
child_allocation.y += offset;
- page_start = child_allocation.y;
+ total_size = child_allocation.y;
}
else
{
x += border_width;
x += offset;
- page_start = x;
+ total_size = x;
}
/* update the scrollbar to match the displayed adjustment */
@@ -671,14 +671,14 @@ gtk_tool_palette_size_allocate (GtkWidget *widget,
GTK_TEXT_DIR_LTR == direction)
{
lower = 0;
- upper = MAX (0, page_start);
+ upper = MAX (0, total_size);
value = MIN (offset, upper - page_size);
gtk_adjustment_clamp_page (adjustment, value, offset + page_size);
}
else
{
- lower = page_size - MAX (0, page_start);
+ lower = page_size - MAX (0, total_size);
upper = page_size;
offset = -offset;