diff options
author | Alexander Larsson <alexl@redhat.com> | 2003-09-30 16:36:16 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2003-09-30 16:36:16 +0000 |
commit | 1f859c83a9c2734ce3645657a065d7faa8c69560 (patch) | |
tree | 6527e41087c8c7a6c6d4fcb56a0eca3af1cfb7e6 /libnautilus-private/nautilus-icon-container.c | |
parent | 7a57d6c45c56a63dad6345f78711f2c95b7414f7 (diff) | |
download | nautilus-1f859c83a9c2734ce3645657a065d7faa8c69560.tar.gz |
Force any scheduled relayout to run before scrolling.
2003-09-30 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_scroll_to_icon):
Force any scheduled relayout to run before scrolling.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-container.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c index 42619eb1a..3c2ee0dde 100644 --- a/libnautilus-private/nautilus-icon-container.c +++ b/libnautilus-private/nautilus-icon-container.c @@ -4434,10 +4434,14 @@ nautilus_icon_container_scroll_to_icon (NautilusIconContainer *container, vadj = gtk_layout_get_vadjustment (GTK_LAYOUT (container)); + /* We need to force a relayout now if there are updates queued + * since we need the final positions */ + nautilus_icon_container_layout_now (container); + l = container->details->icons; while (l != NULL) { icon = l->data; - + if (icon->data == data && icon_is_positioned (icon)) { item = EEL_CANVAS_ITEM (icon->item); |