diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-16 20:13:48 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-16 20:13:48 +0000 |
commit | 632fc5abc3f73dfc68e681442f84b9d1a8edffc1 (patch) | |
tree | dcbaa327ae45c3e8d23540069c9468ab27d416ba /libnautilus-private/nautilus-file-utilities.h | |
parent | 9eaa3a34debba0a5f6c4f339066f16e8a87dccc9 (diff) | |
download | nautilus-632fc5abc3f73dfc68e681442f84b9d1a8edffc1.tar.gz |
Define the build timestamp only if given in the environment.
* acconfig.h:
* configure.in:
Define the build timestamp only if given in the environment.
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_get_build_timestamp):
* libnautilus-extensions/nautilus-file-utilities.h:
New function to obtain the build timestamp.
* src/nautilus-window-manage-views.c:
(window_set_title_with_timestamp), (update_title):
* src/nautilus-window-menus.c: (get_about_box_timestamp_string),
(help_menu_about_nautilus_callback):
Display the build timestamp in both the about box and window
title. This only happens if the build timestamp is set at
compile time.
Diffstat (limited to 'libnautilus-private/nautilus-file-utilities.h')
-rw-r--r-- | libnautilus-private/nautilus-file-utilities.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-file-utilities.h b/libnautilus-private/nautilus-file-utilities.h index 70ba87ea9..3348c34fe 100644 --- a/libnautilus-private/nautilus-file-utilities.h +++ b/libnautilus-private/nautilus-file-utilities.h @@ -41,9 +41,9 @@ char * nautilus_make_uri_from_input (const char gboolean nautilus_uri_is_trash (const char *uri); char * nautilus_make_uri_canonical (const char *uri); gboolean nautilus_uri_is_canonical_uri (const char *uri); - gboolean nautilus_uris_match (const char *uri_1, const char *uri_2); + /* FIXME bugzilla.eazel.com 2424: * This is the same as gnome-libs g_concat_dir_and_file except * for handling path == NULL. @@ -51,6 +51,7 @@ gboolean nautilus_uris_match (const char char * nautilus_make_path (const char *path, const char *name); + /* These functions all return something something that needs to be * freed with g_free, is not NULL, and is guaranteed to exist. */ @@ -59,14 +60,17 @@ char * nautilus_get_user_main_directory (void); char * nautilus_get_desktop_directory (void); char * nautilus_get_pixmap_directory (void); + /* See if the user_main_directory exists. This should be called before * nautilus_get_user_main_directory, which creates the directory. */ gboolean nautilus_user_main_directory_exists (void); + /* Convenience routine to test if a string is a remote URI. */ gboolean nautilus_is_remote_uri (const char *uri); + /* A version of gnome's gnome_pixmap_file that works for the nautilus prefix. * Otherwise similar to gnome_pixmap_file in that it checks to see if the file * exists and returns NULL if it doesn't. @@ -77,6 +81,7 @@ gboolean nautilus_is_remote_uri (const char */ char * nautilus_pixmap_file (const char *partial_path); + /* Read an entire file at once with gnome-vfs. */ GnomeVFSResult nautilus_read_entire_file (const char *uri, int *file_size, @@ -90,11 +95,20 @@ NautilusReadFileHandle *nautilus_read_file_async (const char gpointer callback_data); void nautilus_read_file_cancel (NautilusReadFileHandle *handle); + /* Convenience routine for simple file copying using text-based uris */ -GnomeVFSResult nautilus_copy_uri_simple (const char *source_uri, const char *dest_uri); +GnomeVFSResult nautilus_copy_uri_simple (const char *source_uri, + const char *dest_uri); + /* gnome-vfs cover to make a directory and parents */ GnomeVFSResult nautilus_make_directory_and_parents (GnomeVFSURI *uri, guint permissions); +/* Returns the build timestamp the Nautilus binary. + * This is useful to be able to tell builds apart. + * A return value of NULL means unknown timestamp. + */ +char * nautilus_get_build_timestamp (void); + #endif /* NAUTILUS_FILE_UTILITIES_H */ |