[nautilus] pathbar: fix allocation offset for the down slider button
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pathbar: fix allocation offset for the down slider button
- Date: Wed, 1 Aug 2012 19:58:20 +0000 (UTC)
commit 71db3de604d85f33236222864b9e688b2248c4d4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 1 21:56:04 2012 +0200
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
src/nautilus-pathbar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index bd8a359..b09b460 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]