diff options
author | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-04-05 02:32:15 +0000 |
---|---|---|
committer | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-04-05 02:32:15 +0000 |
commit | 491e5af160432cd0a12c12d9f4a9c0428b923b5c (patch) | |
tree | 64265dfe8a0f532f8f7da93f22c7530f16611369 /libnautilus/nautilus-view-frame.c | |
parent | 4dfef36f2abdaffccc71d413d34e7eb7cf929c33 (diff) | |
download | nautilus-491e5af160432cd0a12c12d9f4a9c0428b923b5c.tar.gz |
Make selection persistent across content view changes (task 105).
* src/file-manager/fm-directory-view.c,
src/file-manager/fm-directory-view.h
(fm_directory_view_set_selection): New function.
(set_selection): New virtual method that must by implemented by
subclasses.
(add_nautilus_file_to_uri_map, remove_nautilus_file_from_uri_map,
free_file_by_uri_map_entry, free_file_by_uri_map): New functions
to manage a hash table mapping from uri strings to NautilusFile
objects.
(notify_selection_change_cb): New function; on a selection change
notification, either set the selection immediately if the view has
completed loading, or establish it as pending.
(display_pending_files): Maintain the uri -> file hash table on
notifications from the model; do any pending selections required
when loading completes.
* src/file-manager/fm-list-view.c (fm_list_view_set_selection):
New function to implement `set_selection' virtual method.
* src/file-manager/fm-icon-view.c (fm_icon_view_set_selection):
New function to implement `set_selection' virtual method.
* libnautilus/nautilus-list.c (nautilus_list_set_selection): New
function: set the selection to a specified set of rows.
* libnautilus/nautilus-icon-container.c,
libnautilus/nautilus-icon-container.h
(nautilus_icon_container_set_selection): New function: set the
selection to a specified set of icons.
Diffstat (limited to 'libnautilus/nautilus-view-frame.c')
-rw-r--r-- | libnautilus/nautilus-view-frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus/nautilus-view-frame.c b/libnautilus/nautilus-view-frame.c index 2dd8131f4..1e5b917ec 100644 --- a/libnautilus/nautilus-view-frame.c +++ b/libnautilus/nautilus-view-frame.c @@ -149,7 +149,7 @@ impl_Nautilus_View_notify_selection_change(impl_POA_Nautilus_View * servant, Nautilus_SelectionInfo * selinfo, CORBA_Environment * ev) { - gtk_signal_emit(GTK_OBJECT(servant->view), nautilus_view_frame_signals[NOTIFY_SELECTION_CHANGE], selinfo); + gtk_signal_emit (GTK_OBJECT(servant->view), nautilus_view_frame_signals[NOTIFY_SELECTION_CHANGE], selinfo); } static void |