nautilus/HACKING

45 lines
1.5 KiB
Plaintext
Raw Normal View History

====================
0: Table of contents
====================
0: Table of contents
1: Intro
2: Using the leak checker
========
1: Intro
========
Nautilus source tree is available from CVS (the latest-cutting edge
version) and in releases (tarballs).
2000-08-11 03:49:07 +00:00
If you plan to hack on Nautilus, please make sure you work from the
CVS version. The CVS version is available on GNOME CVS. The page
http://developer.gnome.org/tools/cvs.html details how to get started
with GNOME CVS.
2000-08-11 03:49:07 +00:00
If you want to contribute patches, please send mail to the nautilus
maintainer (Darin Adler <darin@eazel.com>) and/or the nautilus mailing
Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was * src/nautilus-window-menus.c: (help_menu_about_nautilus_callback): * libnautilus-extensions/nautilus-program-chooser.c: (nautilus_program_chooser_new), (nautilus_program_chooser_show_no_choices_message): Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was in one other place too. * libnautilus/nautilus-view-component.idl: Fixed some comments. * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory-async.c: (dequeue_pending_idle_callback): * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_emit_files_changed), (nautilus_directory_emit_change_signals_deep), (nautilus_directory_emit_metadata_changed), (call_files_changed_free_list), (call_files_changed_unref_free_list): * libnautilus-extensions/nautilus-file.c: (nautilus_file_changed): Separated out the call so you can emit a files_changed without also emitting a changed signal on each file. * libnautilus-extensions/nautilus-trash-directory.h: * libnautilus-extensions/nautilus-trash-directory.c: (trash_callback_remove_directory), (directory_ready_callback), (forward_files_added_cover), (forward_files_changed_cover), (nautilus_trash_directory_add_real_directory), (trash_callback_remove_directory_cover), (nautilus_trash_directory_remove_real_directory), (remove_all_real_directories), (fm_desktop_icon_view_discover_trash_callback), (add_one_writable_device), (get_trashable_volume_uris), (nautilus_trash_monitor_async_get_trash_directories): More trash work. A bunch is commented out. I'm doing this *so* slowly, but I need to check in at this point for Gene's sake. * libnautilus-extensions/nautilus-volume-monitor.h: * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_initialize_class), (mount_device_activate), (mount_device_deactivate): Changed the signals to be both more useful and easier to use. * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_initialize): * src/file-manager/nautilus-trash-monitor.c: Moved 1/2-written trash code out of here. * HACKING: Spell checking.
2000-08-18 18:44:37 +00:00
list: <nautilus-list@lists.eazel.com> (subscriptions should be made to
<nautilus-list-request@lists.eazel.com> with "subscribe" as a
subject).
Patches should be made with 'cvs diff -u >patch' and should conform to
Nautilus coding style as described in docs/style-guide.html Please
read other relevant documents in the docs directory too.
Updated code affected by destroy-notify addition to bonobo. Requires new Updated code affected by destroy-notify addition to bonobo. Requires new bonobo. * libnautilus-extensions/nautilus-bonobo-extensions.c: (nautilus_bonobo_ui_handler_menu_set_toggle_appearance): Save and restore the destroy notify function as well as the callback. This requires using the new function bonobo_ui_handler_menu_remove_callback_no_notify to do right. * src/file-manager/fm-directory-view.c: (application_launch_parameters_new), (application_launch_parameters_free): Ref and unref the directory view object now that we correctly free this as needed. (viewer_launch_parameters_new), (viewer_launch_parameters_free): Ref and unref the directory view object now that we correctly free this as needed. (add_open_with_bonobo_menu_item): Add a destroy-notify function parameters and apply it using bonobo_ui_handler_menu_set_callback. (add_application_to_bonobo_menu): Free the launch parmaeters using a destroy-notify function. (add_component_to_bonobo_menu): Free the launch parmaeters using a destroy-notify function. * src/nautilus-window-menus.c: (append_bookmark_to_menu): Use a destroy-notify function to destroy the bookmark holder. (clear_appended_bookmark_items): Get rid of the code that gets the callback data and destroys it explicitly. * libnautilus/nautilus-clipboard.c: (add_menu_item): * src/file-manager/fm-directory-view.c: (insert_bonobo_menu_item), (fm_directory_view_real_merge_menus): * src/file-manager/fm-icon-view.c: (append_bonobo_menu_item), (fm_icon_view_merge_menus): Rename BonoboUIHandlerCallbackFunc -> BonoboUIHandlerCallback. * HACKING: Some reformatting.
2000-06-07 19:29:09 +00:00
=========================
2: Using the leak checker
=========================
The leak checker is built as part of the eazel-tools gnome module.
Build that first before you continue.
Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was * src/nautilus-window-menus.c: (help_menu_about_nautilus_callback): * libnautilus-extensions/nautilus-program-chooser.c: (nautilus_program_chooser_new), (nautilus_program_chooser_show_no_choices_message): Fixed bug 2210 (GNOME is referred to as Gnome in the about dialog). It was in one other place too. * libnautilus/nautilus-view-component.idl: Fixed some comments. * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory-async.c: (dequeue_pending_idle_callback): * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_emit_files_changed), (nautilus_directory_emit_change_signals_deep), (nautilus_directory_emit_metadata_changed), (call_files_changed_free_list), (call_files_changed_unref_free_list): * libnautilus-extensions/nautilus-file.c: (nautilus_file_changed): Separated out the call so you can emit a files_changed without also emitting a changed signal on each file. * libnautilus-extensions/nautilus-trash-directory.h: * libnautilus-extensions/nautilus-trash-directory.c: (trash_callback_remove_directory), (directory_ready_callback), (forward_files_added_cover), (forward_files_changed_cover), (nautilus_trash_directory_add_real_directory), (trash_callback_remove_directory_cover), (nautilus_trash_directory_remove_real_directory), (remove_all_real_directories), (fm_desktop_icon_view_discover_trash_callback), (add_one_writable_device), (get_trashable_volume_uris), (nautilus_trash_monitor_async_get_trash_directories): More trash work. A bunch is commented out. I'm doing this *so* slowly, but I need to check in at this point for Gene's sake. * libnautilus-extensions/nautilus-volume-monitor.h: * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_initialize_class), (mount_device_activate), (mount_device_deactivate): Changed the signals to be both more useful and easier to use. * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_initialize): * src/file-manager/nautilus-trash-monitor.c: Moved 1/2-written trash code out of here. * HACKING: Spell checking.
2000-08-18 18:44:37 +00:00
Nautilus is set up to use the libleakcheck.so leak checking
library. To use it, run Nautilus with LD_PRELOAD set to the path to
the installed libleakcheck.so library. For example, if you are using a
Bourne-compatible shell, like bash, you can run Nautilus this way to
run with leak checking:
LD_PRELOAD=/gnome/libs/libleakcheck.so /gnome/bin/nautilus