summaryrefslogtreecommitdiff
path: root/src/nautilus-pathbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-08-01 21:56:04 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2012-08-01 21:56:04 +0200
commit71db3de604d85f33236222864b9e688b2248c4d4 (patch)
tree5399ac15dbcf3a9977929ec989bc6b0b41ee1831 /src/nautilus-pathbar.c
parent0d027cae7b5a47d9bf5f5eed43532ca4a385cb4f (diff)
downloadnautilus-71db3de604d85f33236222864b9e688b2248c4d4.tar.gz
pathbar: fix allocation offset for the down slider button
We want the down slider button to be linked visually to the rest of the pathbar. https://bugzilla.gnome.org/show_bug.cgi?id=680916
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r--src/nautilus-pathbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index bd8a3595b..b09b46022 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -615,9 +615,9 @@ nautilus_path_bar_size_allocate (GtkWidget *widget,
gtk_widget_size_allocate (child, &child_allocation);
if (direction == GTK_TEXT_DIR_RTL) {
- down_slider_offset = 0;
+ down_slider_offset = child_allocation.x - allocation->x - path_bar->priv->slider_width;
} else {
- down_slider_offset = allocation->width - path_bar->priv->slider_width;
+ down_slider_offset += child_allocation.width;
child_allocation.x += child_allocation.width;
}
}