mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
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
This commit is contained in:
parent
0d027cae7b
commit
71db3de604
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue