diff options
author | Darin Adler <darin@src.gnome.org> | 2000-05-17 21:45:15 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-05-17 21:45:15 +0000 |
commit | 170a7b49c2e3dbd6effacd004880c195f9f79c81 (patch) | |
tree | 49c6686b049a36c26324c2620e0afe09c860b3be /src | |
parent | 9608c8843ed9d8f89d2929a1715e906f7e87cc35 (diff) | |
download | nautilus-170a7b49c2e3dbd6effacd004880c195f9f79c81.tar.gz |
Added comments.
* libnautilus-extensions/nautilus-icon-container.h:
Added comments.
* libnautilus-extensions/nautilus-icon-factory.c:
(scale_image_and_rectangle): Added a minimum height and width to
avoid problems with scaling things down to 0.
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_initialize_class), (insert_row):
* src/file-manager/fm-list-view.c: (add_to_list):
Moved GtkCList workaround into NautilusList so all clients can get
the advantage of it instead of just FMListView. Also eliminated
some unneeded empty functions for signals, since NULL works for an
empty signal handler.
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-list-view.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index c947b24a0..51fc8b083 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -634,7 +634,6 @@ add_to_list (FMListView *list_view, NautilusFile *file) char **text; int new_row; int column; - int focus_row; g_return_val_if_fail (FM_IS_DIRECTORY_VIEW (list_view), -1); g_return_val_if_fail (NAUTILUS_IS_FILE (file), -1); @@ -662,14 +661,7 @@ add_to_list (FMListView *list_view, NautilusFile *file) gtk_object_set_data (GTK_OBJECT (clist), PENDING_USER_DATA_KEY, file); /* Note that since list is auto-sorted new_row isn't necessarily last row. */ - /* Do a workaround for a problem whith GtkClist where it would drag the - * current focus point to a pretty much random location while inserting - * new items to a list. - */ - focus_row = clist->focus_row; new_row = gtk_clist_append (clist, text); - if (focus_row == -1) - clist->focus_row = focus_row; gtk_clist_set_row_data (clist, new_row, file); nautilus_list_mark_cell_as_link (list, new_row, LIST_VIEW_COLUMN_NAME); gtk_object_set_data (GTK_OBJECT (clist), PENDING_USER_DATA_KEY, NULL); |