diff options
author | Darin Adler <darin@src.gnome.org> | 2000-04-28 02:03:31 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-04-28 02:03:31 +0000 |
commit | 7e8e4fa240d552b47fb58d858a9390a160a06ce4 (patch) | |
tree | 996f96616f1caf79b1953939c397f8181ff3fb00 /libnautilus-extensions/nautilus-string.h | |
parent | 3ada85dbf13d910cc3aa6aa5a7d809f5714e990d (diff) | |
download | nautilus-7e8e4fa240d552b47fb58d858a9390a160a06ce4.tar.gz |
Rewrite of the state machine. This adds the new feature that Maciej needs
* libnautilus-extensions/nautilus-directory-async.c:
Rewrite of the state machine. This adds the new feature that Maciej
needs where you can call "call_when_ready" to get file attributes.
* libnautilus-extensions/nautilus-directory-private.h:
Added a file_list_monitored boolean to simplify the logic.
* libnautilus-extensions/nautilus-directory.c
(nautilus_directory_destroy): Took advantage of file_list_monitored
simplification.
(nautilus_directory_call_when_ready),
(nautilus_directory_cancel_callback): Tweaked the return_if_fail
calls to match changes in the async.c file.
(got_files_callback), (nautilus_self_check_directory):
Added self-check code to test the new feature.
* libnautilus-extensions/nautilus-string.h:
* libnautilus-extensions/nautilus-string.c (nautilus_str_compare):
Added a new function for use with things that take a GCompareFunc
to avoid a function type cast.
Diffstat (limited to 'libnautilus-extensions/nautilus-string.h')
-rw-r--r-- | libnautilus-extensions/nautilus-string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-string.h b/libnautilus-extensions/nautilus-string.h index 405410cb5..0c40509c5 100644 --- a/libnautilus-extensions/nautilus-string.h +++ b/libnautilus-extensions/nautilus-string.h @@ -41,6 +41,10 @@ char * nautilus_strchr (const char *haystack, int nautilus_strcmp (const char *string_a, const char *string_b); +/* GCompareFunc version. */ +int nautilus_str_compare (gconstpointer string_a, + gconstpointer string_b); + /* Versions of basic string functions that free their parameters. */ int nautilus_eat_strcmp (char *string_a_gets_freed, const char *string_b); |