nautilus/RENAMING
Darin Adler f649b991af reviewed by: Rebecca Schulman <rebecka@eazel.com>
Fixed bug 3811 (shallow file counts and top-left text are fetched
	even for non-displayed hidden/backup items).

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(allow_metafile): Add "ghelp:" and "gnome-help:" to the
	unfortunate list of hard-coded schemes. If we hard-code "help:" we
	have to hard-code its synonyms too.
	(find_monitor): Use g_new0 so fields in the Monitor are not
	uninitialized in this case (the fields in question are ignored,
	but it's still nicer this way).
	(nautilus_directory_monitor_add_internal): Set up the "monitor
	hidden files" and "monitor backup files" in the Monitor structure
	based on new parameters.
	(should_display_file_name): Use
	nautilus_file_name_matches_hidden_pattern and
	nautilus_file_name_matches_backup_pattern.
	(monitor_includes_file): New function that encapsulates the rule
	about which monitor includes which file. Handles the new flags for
	not monitoring hidden or backup files.
	(is_needy): Call monitor_includes_file.
	(select_needy_file): Call monitor_includes_file.

	* libnautilus-extensions/nautilus-file-private.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_name_matches_hidden_pattern),
	(nautilus_file_name_matches_backup_pattern): New functions to
	share with the directory code.
	(nautilus_file_is_hidden_file), (nautilus_file_is_backup_file):
	Use the new functions and use the raw relative_uri -- no need to
	unescape to change to a file name since the "." and "~" characters
	are not encoded.

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_initialize): Share more code with the
	filtering_changed_callback. Handle the desktop view better by
	never setting the "show hidden" and "show backup" flags (so they
	are both FALSE) and not setting up the callbacks.
	(fm_directory_view_destroy): Since we don't set up the callbacks
	for desktop windows, don't remove them for desktop windows.
	(queue_pending_files): Remove the desktop special case from
	here. It was strange to set the flags up then wait until this
	moment to clear them both. It's better to keep them FALSE.
	(finish_loading): Renamed and changed to pass the appropriate
	values in to the nautilus_directory_file_monitor_add call -- this
	is the actual bug fix.
	(filtering_changed_callback): Remove the desktop special case,
	since this function will now never be called for the desktop.

	* libnautilus-extensions/nautilus-directory.h:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_file_monitor_add): Pass through the new
	"monitor hidden files" and "monitor backup files" parameters.
	(nautilus_self_check_directory): Pass TRUE for both.
	* libnautilus-extensions/nautilus-vfs-directory.c:
	(vfs_file_monitor_add): Pass through the new "monitor hidden
	files" and "monitor backup files" parameters.

	* libnautilus-extensions/nautilus-merged-directory.c:
	(merged_file_monitor_add), (monitor_add_directory): Store the
	"monitor hidden files" and "monitor backup files" and pass them
	through to the individual directory monitor calls.

	* components/tree/nautilus-tree-model.c:
	(nautilus_tree_model_node_begin_monitoring_no_connect):
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_monitor_add):
	* libnautilus-extensions/nautilus-trash-monitor.c:
	(nautilus_trash_monitor_initialize):
	* src/nautilus-applicable-views.c:
	(got_minimum_file_info_callback):
	Pass in TRUE for "monitor hidden files" and "monitor backup files"
	to get the same behavior as before. (In some cases the booleans
	are just ignored, in other cases we just monitor all files as we
	used to.)

	* RENAMING: Remind myself to change the name of the
	NAUTILUS_CALL_VIRTUAL macro to NAUTILUS_CALL_METHOD some day.
2001-01-04 23:30:43 +00:00

71 lines
2.3 KiB
Plaintext

We put plans for renaming in here so we can think about them for a
while. Note that when we rename a class, it usually involves renaming
some functions and files too.
When we rename files in the repository, we do it by this process:
1) copy the file in the repository by logging in and using cp (to retain history)
2) check out to get the new file
3) cvs rm to remove the old file on commit
4) fix all build problems
5) commit
This retains the history in both the old and new locations.
------
macros
------
NAUTILUS_CALL_VIRTUAL -> NAUTILUS_CALL_METHOD
---------------
directory names
---------------
components/rpmview -> components/rpm
----------
file names
----------
components/html/ntl-web-browser.c -> ?
components/websearch/ntl-web-search.c -> components/websearch/nautilus-web-search.c?
src/file-manager/fm-* -> ?
src/file-manager/dfos* -> ?
src/file-manager/dfos-xfer* -> src/file-manager/copy_engine*
--------------------------
Random vestiges of "ntl"
--------------------------
libntl-file-manager.* -> libnautilus-file-manager.*
*ntl* -> *nautilus*
header file guard #defines, *NTL* -> *NAUTILUS*
(change to match header file instead with perl script to check?)
----------------------------
classes and other data types
----------------------------
NautilusNavigationInfo -> ?
--------------
function names
--------------
zoom_level_changed -> report_zoom_level_change
nautilus_strlen -> nautilus_null_tolerant_strlen
nautilus_strchr -> nautilus_null_tolerant_strchr
nautilus_strcmp -> nautilus_null_tolerant_strcmp
nautilus_strcasecmp -> nautilus_null_tolerant_strcasecmp
nautilus_str_compare -> nautilus_str_compare_null_tolerant
nautilus_eat_strcmp -> <kill it>
--------------------------------------
General terminology -> English changes
--------------------------------------
We want to use "tool bar" as two words since "toolbar" isn't
a real English word. We can't fix GTK or Bonobo's improper use
of "toolbar" but we shouldn't propagate it. In some places we
are already using "tool bar" as two words but we aren't consistent.
classes: NautilusToolbar -> NautilusToolBar
files: nautilus-toolbar.[ch] -> nautilus-tool-bar.[ch],
nautilus-window-toolbars.c -> nautilus-window-tool-bars.c
Should also search for variable names, etc (being careful not
to change the Gtk and Bonobo calls)