nautilus r15165 - in trunk: . libnautilus-private
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r15165 - in trunk: . libnautilus-private
- Date: Tue, 7 Apr 2009 10:06:30 +0000 (UTC)
Author: alexl
Date: Tue Apr 7 10:06:29 2009
New Revision: 15165
URL: http://svn.gnome.org/viewvc/nautilus?rev=15165&view=rev
Log:
2009-04-07 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_layout_now):
Ensure that we've also size-allocated for the new contents.
It may happen that newly added icons caused the size allocate
to turn on a scrollbar, which will change the layout.
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-icon-container.c
Modified: trunk/libnautilus-private/nautilus-icon-container.c
==============================================================================
--- trunk/libnautilus-private/nautilus-icon-container.c (original)
+++ trunk/libnautilus-private/nautilus-icon-container.c Tue Apr 7 10:06:29 2009
@@ -7301,6 +7301,11 @@
unschedule_redo_layout (container);
redo_layout_internal (container);
}
+
+ /* Also need to make sure we're properly resized, for instance
+ * newly added files may trigger a change in the size allocation and
+ * thus toggle scrollbars on */
+ gtk_container_check_resize (GTK_CONTAINER (GTK_WIDGET (container)->parent));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]