diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-12-04 13:03:19 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-12-04 13:03:19 +0000 |
commit | c0642f66cea9fe1d0e8d8dd8df06a798e12de173 (patch) | |
tree | 213da44808cf8e2715f4caadcb40324c33b148c6 /src | |
parent | 77925f70e3c9defaf57839a11062b5ce76cf7182 (diff) | |
download | nautilus-c0642f66cea9fe1d0e8d8dd8df06a798e12de173.tar.gz |
Freeze icon view updates while renaming to avoid things moving around on
2006-12-04 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-container.[ch]:
* src/file-manager/fm-icon-container.c:
Freeze icon view updates while renaming to avoid things
moving around on file changes. (#318373)
Patch from Nelson BenÃtez
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-icon-container.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/file-manager/fm-icon-container.c b/src/file-manager/fm-icon-container.c index 007c0fb95..3c43a48a4 100644 --- a/src/file-manager/fm-icon-container.c +++ b/src/file-manager/fm-icon-container.c @@ -468,6 +468,24 @@ fm_icon_container_compare_icons_by_name (NautilusIconContainer *container, } static void +fm_icon_container_freeze_updates (NautilusIconContainer *container) +{ + FMIconView *icon_view; + icon_view = get_icon_view (container); + g_return_if_fail (icon_view != NULL); + fm_directory_view_freeze_updates (FM_DIRECTORY_VIEW (icon_view)); +} + +static void +fm_icon_container_unfreeze_updates (NautilusIconContainer *container) +{ + FMIconView *icon_view; + icon_view = get_icon_view (container); + g_return_if_fail (icon_view != NULL); + fm_directory_view_unfreeze_updates (FM_DIRECTORY_VIEW (icon_view)); +} + +static void fm_icon_container_dispose (GObject *object) { FMIconContainer *icon_container; @@ -495,6 +513,8 @@ fm_icon_container_class_init (FMIconContainerClass *klass) ic_class->compare_icons = fm_icon_container_compare_icons; ic_class->compare_icons_by_name = fm_icon_container_compare_icons_by_name; + ic_class->freeze_updates = fm_icon_container_freeze_updates; + ic_class->unfreeze_updates = fm_icon_container_unfreeze_updates; G_OBJECT_CLASS (klass)->dispose = fm_icon_container_dispose; } |