CVSROOT: /cvs/gnome
Module name: nautilus
Changes by: alexl 06/02/27 10:36:40
Modified files:
. : ChangeLog
libnautilus-private: Makefile.am nautilus-file.c
Added files:
libnautilus-private: nautilus-users-groups-cache.c
nautilus-users-groups-cache.h
Log message:
2006-02-26 Zbigniew Chyla <[EMAIL PROTECTED]>
Get users' and groups' names via a cache to avoid calling
getpwuid/getgrgid too often (i.e. many times during single redraw).
* libnautilus-private/Makefile.am: (libnautilus_private_la_SOURCES):
Added nautilus-users-groups-cache.[ch]
* libnautilus-private/nautilus-users-groups-cache.[ch]: New,
implementation of cache for getpwuid/getgrgid results.
* libnautilus-private/nautilus-file.c:
(get_user_name_from_id): removed
(get_real_name): accept "name + gecos" pair instead of "struct passwd".
(get_user_and_real_name_from_id): get user name and gecos using
nautilus_users_cache_* functions instead of using getpwuid directly.
(nautilus_get_user_names): adjusted to changed signature of get_real_name.
(nautilus_file_get_group_name): get group name using
nautilus_groups_cache_get_name instead of using getgrgid directly.
(nautilus_file_get_owner_as_string): get user name using
nautilus_users_cache_get_name.
URL :
http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=nautilus&who=alexl&date=explicit&mindate=2006-02-27%2010:35&maxdate=2006-02-27%2010:37
_______________________________________________
cvs-commits-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/cvs-commits-list