From 0ee0b7176b37d0b51d81e6e51b1250a8a458adfc Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Tue, 7 Nov 2000 19:26:37 +0000 Subject: Tweak to match Nautilus coding style. * libnautilus-extensions/nautilus-file-operations.h: * libnautilus-extensions/nautilus-file-operations.c: * src/nautilus-first-time-druid.h: Tweak to match Nautilus coding style. * src/nautilus-first-time-druid.c: (druid_cancel): Added FIXME about the way it quits Nautilus when you cancel. (druid_finished): Use #define constants instead of hard-coded URLs. (make_anti_aliased_label): Put FIXME where a font and size are hard-coded. (make_hbox_user_level_radio_button): Put FIXME where a font is hard-coded. (set_up_user_level_page): Put FIXME where a font size is hard-coded. (next_update_page_callback): Put FIXME where a comment mentions a "timer task" that does not exist. (nautilus_first_time_druid_show), (download_callback), (read_file_handle_cancel_cover), (initiate_file_download): Got rid of "cheap workaround" for when the druid goes away; instead, we cancel the I/O. Other tweaks to be at least in the vicinity of Nautilus coding style. --- libnautilus-extensions/nautilus-file-operations.h | 54 ++++++++++++----------- 1 file changed, 29 insertions(+), 25 deletions(-) (limited to 'libnautilus-extensions/nautilus-file-operations.h') diff --git a/libnautilus-extensions/nautilus-file-operations.h b/libnautilus-extensions/nautilus-file-operations.h index c28151c58..56aa66003 100644 --- a/libnautilus-extensions/nautilus-file-operations.h +++ b/libnautilus-extensions/nautilus-file-operations.h @@ -1,5 +1,6 @@ /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ -/* nautilus-file-operatoins: execute file operations. + +/* nautilus-file-operations: execute file operations. Copyright (C) 1999, 2000 Free Software Foundation @@ -21,34 +22,37 @@ Author: Ettore Perazzoli */ -#ifndef _NAUTILUS_FILE_OPERATIONS_H -#define _NAUTILUS_FILE_OPERATIONS_H +#ifndef NAUTILUS_FILE_OPERATIONS_H +#define NAUTILUS_FILE_OPERATIONS_H #include -void nautilus_file_operations_copy_move (const GList *item_uris, - const GdkPoint *target_item_points, - const char *target_dir, - int copy_action, - GtkWidget *parent_view, - void (*done_callback) (GHashTable *debuting_uris, gpointer data), - gpointer done_callback_data); - -void nautilus_file_operations_move_to_trash (const GList *item_uris, - GtkWidget *parent_view); - -void nautilus_file_operations_empty_trash (GtkWidget *parent_view); -void nautilus_file_operations_new_folder (GtkWidget *parent_view, - const char *parent_dir, - void (*done_callback)(const char *new_folder_uri, gpointer data), - gpointer data); -void nautilus_file_operations_delete (const GList *item_uris, GtkWidget *parent_view); - +typedef void (* NautilusCopyCallback) (GHashTable *debuting_uris, + gpointer callback_data); +typedef void (* NautilusNewFolderCallback) (const char *new_folder_uri, + gpointer callback_data); + +void nautilus_file_operations_copy_move (const GList *item_uris, + const GdkPoint *target_item_points, + const char *target_dir_uri, + int copy_action, + GtkWidget *parent_view, + NautilusCopyCallback done_callback, + gpointer done_callback_data); +void nautilus_file_operations_move_to_trash (const GList *item_uris, + GtkWidget *parent_view); +void nautilus_file_operations_empty_trash (GtkWidget *parent_view); +void nautilus_file_operations_new_folder (GtkWidget *parent_view, + const char *parent_dir_uri, + NautilusNewFolderCallback done_callback, + gpointer done_callback_data); +void nautilus_file_operations_delete (const GList *item_uris, + GtkWidget *parent_view); /* Prepare an escaped string for display. Unescapes a string in place. - * Frees the original string. + * Like gnome_vfs_unescape_string_for_display but frees the original + * string. */ -char *nautilus_convert_to_unescaped_string_for_display (char *escaped); -#endif /* _NAUTILUS_FILE_OPERATIONS_H */ - +char *nautilus_convert_to_unescaped_string_for_display (char *escaped); +#endif /* NAUTILUS_FILE_OPERATIONS_H */ -- cgit v1.2.1