Commit bbc5753d authored by Christian Neumair's avatar Christian Neumair Committed by Christian Neumair

Set layout timestamp when fixating semi-positioned icons. Fixes #550807.

2008-09-04  Christian Neumair  <cneumair@gnome.org>

	* libnautilus-private/nautilus-icon-container.c
	(finish_adding_new_icons):
	Set layout timestamp when fixating semi-positioned icons. Fixes
	#550807.

svn path=/trunk/; revision=14584
parent 4a9bd527
2008-09-04 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-icon-container.c
(finish_adding_new_icons):
Set layout timestamp when fixating semi-positioned icons. Fixes
#550807.
2008-09-04 Robert-André Mauchin <zebob.m@pengzone.org>
* po/LINGUAS:
......
......@@ -7044,6 +7044,8 @@ finish_adding_new_icons (NautilusIconContainer *container)
if (semi_position_icons != NULL) {
PlacementGrid *grid;
time_t now;
gboolean dummy;
g_assert (!container->details->auto_layout);
......@@ -7061,6 +7063,8 @@ finish_adding_new_icons (NautilusIconContainer *container)
}
}
now = time (NULL);
for (p = semi_position_icons; p != NULL; p = p->next) {
NautilusIcon *icon;
NautilusIconPosition position;
......@@ -7081,6 +7085,8 @@ finish_adding_new_icons (NautilusIconContainer *container)
placement_grid_mark_icon (grid, icon);
g_signal_emit (container, signals[ICON_POSITION_CHANGED], 0,
icon->data, &position);
g_signal_emit (container, signals[STORE_LAYOUT_TIMESTAMP], 0,
icon->data, &now, &dummy);
/* ensure that next time we run this code, the formerly semi-positioned
* icons are treated as being positioned. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment