summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-list.h
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2000-08-21 22:07:41 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2000-08-21 22:07:41 +0000
commit6ec2aa3e2fbf39fe6d127249c9578571f0a97241 (patch)
tree0b4cd673db5a21c465da6b6a535528b7c852f665 /libnautilus-private/nautilus-list.h
parent610a761425552deff22c44127409928182f6d5ee (diff)
downloadnautilus-6ec2aa3e2fbf39fe6d127249c9578571f0a97241.tar.gz
Finished bug 1750 ("Reveal in New Window" feature for
search results). Now choosing this menu item opens the right window, selects the right item, and scrolls as necessary to reveal the selected item. * libnautilus-extensions/nautilus-icon-container.h, * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_reveal): New function, wrapper for existing private reveal_icon function that first finds the NautilusIcon for the given NautilusIconData. * libnautilus-extensions/nautilus-list.h, * libnautilus-extensions/nautilus-list.c: (nautilus_list_reveal_row): Renamed this function from reveal_row and made it public. (keyboard_row_reveal_timeout_callback): Accounted for name change (nautilus_list_get_first_selected_row): New function, returns index of first selected item. * src/file-manager/fm-icon-view.c: (fm_icon_view_set_selection), * src/file-manager/fm-list-view.c: (fm_list_view_set_selection): reveal first selected item. This has the (good, I think) side effect of scrolling as necessary to make sure at least one selected item is in view whenever the selection is explicitly set, which includes when creating a new folder and when switching views with an existing selection (but beware, switching from list view to icon view with a selection currently crashes due to bug 2222).
Diffstat (limited to 'libnautilus-private/nautilus-list.h')
-rw-r--r--libnautilus-private/nautilus-list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-list.h b/libnautilus-private/nautilus-list.h
index 0e8035dfb..820f87610 100644
--- a/libnautilus-private/nautilus-list.h
+++ b/libnautilus-private/nautilus-list.h
@@ -130,6 +130,8 @@ GtkWidget * nautilus_list_new_with_titles (int colum
GList * nautilus_list_get_selection (NautilusList *list);
void nautilus_list_set_selection (NautilusList *list,
GList *selection);
+void nautilus_list_reveal_row (NautilusList *list,
+ int row);
gboolean nautilus_list_is_row_selected (NautilusList *list,
int row);
void nautilus_list_set_pixbuf_list (NautilusList *list,
@@ -145,6 +147,7 @@ void nautilus_list_select_row (NautilusList *list,
int row);
GtkCListRow *nautilus_list_row_at (NautilusList *list,
int y);
+int nautilus_list_get_first_selected_row (NautilusList *list);
void nautilus_list_each_selected_row (NautilusList *list,
NautilusEachRowFunction function,
gpointer data);