summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file-operations.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't make progress dialogs transient for the desktop.Alexander Larsson2004-08-301-3/+10
| | | | | | | | | | 2004-08-30 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: (create_transfer_dialog): * src/nautilus-desktop-window.c: (nautilus_desktop_window_instance_init): Don't make progress dialogs transient for the desktop.
* Better warnings on folder merge overwrite.Alexander Larsson2004-07-071-4/+43
| | | | | | | 2004-07-07 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c (handle_transfer_overwrite): Better warnings on folder merge overwrite.
* Try to convert from the locale if G_BROKEN_FILENAMES isn't set and theDave Camp2004-06-091-1/+12
| | | | | | | | | 2004-06-09 Dave Camp <dave@novell.com> * libnautilus-private/nautilus-file-operations.c: (get_next_duplicate_name): Try to convert from the locale if G_BROKEN_FILENAMES isn't set and the filename isn't valid utf8.
* *** empty log message ***Alexander Winston2004-05-131-1/+1
|
* libnautilus-private/nautilus-file-operations.c (confirm_empty_trash) MakeAlexander Larsson2004-02-121-4/+9
| | | | | | | 2004-02-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c (confirm_empty_trash) Make trash dialog transient to window group.
* Set role of AtkObject to ATK_ROLE_ALERT. Fixes bug #132857.Padraig O'Briain2004-02-051-0/+1
| | | | | | | 2004-02-05 Padraig O'Briain <padraig.obriain@sun.com> * libnautilus-private/ nautilus-file-operations.c (confirm_empty_trash): Set role of AtkObject to ATK_ROLE_ALERT. Fixes bug #132857.
* #129815, #46784.Christian Neumair2004-01-221-1/+3
|
* Return NULL for new uri on failure.Alexander Larsson2004-01-221-5/+12
| | | | | | | | | | | | 2004-01-22 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: Return NULL for new uri on failure. * src/file-manager/fm-directory-view.c: (new_folder_done): Handle failure (real_update_menus): Desensitive template menu if we can't create files.
* Don't translate duplication tests to avoid wasting translator time. MyAlexander Larsson2004-01-061-41/+41
| | | | | | | | | 2004-01-06 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: Don't translate duplication tests to avoid wasting translator time. My guess is that nobody was running make check in different locales anyway.
* Ensure the source isn't deleted as partial copy in a duplicate operation.Martin Wehner2004-01-021-1/+3
| | | | | | | | 2004-01-02 Martin Wehner <martin.wehner@epost.de> * libnautilus-private/nautilus-file-operations.c: Ensure the source isn't deleted as partial copy in a duplicate operation. Fixes bug #128095.
* New function nautilus_file_operations_new_file.Alexander Larsson2003-12-121-1/+203
| | | | | | | | | | | | | | | | | | | | | | 2003-12-12 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.[ch]: New function nautilus_file_operations_new_file. * libnautilus-private/nautilus-file-utilities.[ch]: New template directory functions * src/nautilus-navigation-window-ui.xml: * src/nautilus-spatial-window-ui.xml: * src/nautilus-window-menus.c: Add Templates in location menu * src/file-manager/fm-directory-view.[ch]: * src/file-manager/nautilus-directory-view-ui.xml: Implement the templates menu. Fix issue that affected create new folder too, sometimes the file has already been added before we get the done callback.
* Update error dialogs to be HIGy, and use the new eel message dialog api.Alexander Larsson2003-12-111-134/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-11 Alexander Larsson <alexl@redhat.com> * components/emblem/nautilus-emblem-view.c: * components/music/nautilus-music-view.c: * components/news/nautilus-news.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-emblem-utils.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-icon-dnd.c: * libnautilus-private/nautilus-program-chooser.c: * libnautilus-private/nautilus-program-choosing.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-error-reporting.c: * src/file-manager/fm-icon-view.c: * src/file-manager/fm-properties-window.c: * src/file-manager/fm-search-list-view.c: * src/file-manager/nautilus-indexing-info.c: * src/nautilus-application.c: * src/nautilus-connect-server-dialog.c: * src/nautilus-information-panel.c: * src/nautilus-location-bar.c: * src/nautilus-navigation-window-menus.c: * src/nautilus-navigation-window.c: * src/nautilus-property-browser.c: * src/nautilus-window-manage-views.c: * src/nautilus-window.c: Update error dialogs to be HIGy, and use the new eel message dialog api. Based on patch from dennis_cranston@yahoo.com
* Fix leaks. Patch from Martin Wehner <martin.wehner@epost.de>Alexander Larsson2003-10-211-1/+3
| | | | | | | | | | | | | 2003-10-21 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-link.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-icon-factory.c: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: Fix leaks. Patch from Martin Wehner <martin.wehner@epost.de>
* HIGify the empty trash dialog. Changes strings.Dennis Cranston2003-09-181-7/+35
| | | | | | | 2003-09-19 Dennis Cranston <dennis_cranston at yahoo com> * libnautilus-private/nautilus-file-operations.c: HIGify the empty trash dialog. Changes strings.
* Use the parent_view's toplevel for the dialog rather than the view itself.Dave Camp2003-08-041-1/+1
| | | | | | | | 2003-08-04 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-file-operations.c: (handle_new_folder_vfs_error): Use the parent_view's toplevel for the dialog rather than the view itself.
* Added new files.Alexander Larsson2003-05-151-36/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-15 Alexander Larsson <alexl@redhat.com> * libnautilus-private/Makefile.am: Added new files. * libnautilus-private/apps_nautilus_preferences.schemas.in: * libnautilus-private/nautilus-global-preferences.[ch]: New prefs for home and trash links. * libnautilus-private/nautilus-desktop-directory.[ch]: New files. Implements the NautilusDesktop object for the virtual x-nautilus-desktop: uri. The directory merges the contents of the directory with the real desktop directory. * libnautilus-private/nautilus-desktop-directory-file.[ch]: New files. Implements the Nautilusfile corresponding to NautilusDestkopDirectory. * libnautilus-private/nautilus-desktop-icon-file.[ch]: New files. Implement NautilusFile for a virtual file in a NautilusDesktopDirectory. Gets all the actual file data from a NautilusDesktopLink. * libnautilus-private/nautilus-desktop-link-monitor.[ch]: New files. Keep track of home and trash visibility prefs and mounted volumes and create/destroy corresponding NautilusDesktopLink object. * libnautilus-private/nautilus-desktop-link.[ch]: New files. Keeps track of all the real information in a desktop icon link. These are home, trash and volume links at the moment. * libnautilus-private/nautilus-directory-async.c: Indentation correction. * libnautilus-private/nautilus-directory.c: (nautilus_directory_new): Create NautilusDesktopDirectory objects for x-nautilus-desktop: uris * libnautilus-private/nautilus-dnd.c: (nautilus_drag_items_local): Handle NULL GnomeVFSURIs. (nautilus_drag_items_on_desktop): New function to check if items are on the desktop. (nautilus_drag_default_drop_action_for_icons): Special case desktop uris. (nautilus_drag_selection_includes_special_link): Convert from old-style special links to current. * libnautilus-private/nautilus-dnd.h: New function nautilus_drag_items_on_desktop. * libnautilus-private/nautilus-file-operations.c: (is_special_link), (nautilus_file_operations_copy_move): Convert from old-style special links to current. (nautilus_file_operations_delete): Special case desktop links * libnautilus-private/nautilus-file-utilities.[ch]: (nautilus_get_desktop_directory): (nautilus_get_gmc_desktop_directory): Change desktop dir to ~/Desktop (nautilus_get_desktop_directory_uri): New function to return desktop dir as a uri. * libnautilus-private/nautilus-file.c: (nautilus_file_new_from_relative_uri), (nautilus_file_get_internal): Handle creation of desktop icon files. (nautilus_file_can_rename), (rename_guts), (nautilus_file_get_drop_target_uri): Update for new special links. (nautilus_file_is_in_desktop): Update for new desktop dir. (nautilus_file_get_uri): Fix uris for self owned files. This changed due to the new canonicalization rules for foo: * libnautilus-private/nautilus-icon-dnd.c: (nautilus_icon_container_selection_items_local), (handle_nonlocal_move): Handle desktop uri. * src/Nautilus_shell.server.in: icon view handles x-nautilus-desktop: uris * src/nautilus-application.c: (finish_startup): Initialize the desktop link monitor * src/nautilus-desktop-window.c: (nautilus_desktop_window_update_directory): Show x-nautilus-desktop: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_finalize), (fm_desktop_icon_view_init), (volume_ops_callback), (trash_link_is_selection), (volume_link_is_selection), (volume_link_device_type), (real_supports_zooming): * src/file-manager/fm-directory-view.c: Remove lots of old support for desktop icon. Reimplement some of it with the new desktop icon support. * src/file-manager/fm-directory-view.h: New function fm_directory_view_get_backing_uri * src/file-manager/fm-icon-container.c: (fm_icon_container_get_icon_text): Don't show extra text for desktop icons (get_sort_category): Update for new desktop icons * src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list): Use get_backing_uri() * src/file-manager/fm-properties-window.c: (get_target_file): Use the new desktop icon support. * libnautilus-private/nautilus-icon-container.c: (lay_down_icons_tblr): Don't loop forever if icon doesn't in the height of the container.
* Fixed dialogs to use GTK_STOCK_CANCEL/GTK_STOCK_OK instead of stop whereDavid Bordoley2003-02-031-9/+9
| | | | | | | | | | 2003-02-03 David Bordoley <bordoley@msu.edu> * lbnautilus-private/nautilus-file-operations.c (handle_transfer_vfs_error): Fixed dialogs to use GTK_STOCK_CANCEL/GTK_STOCK_OK instead of stop where appropriate. Fix button order to be HIG compliant.
* Convert link names and duplicate names with g_filename_to/from_utf8().Alexander Larsson2003-01-171-6/+20
| | | | | | | | | 2003-01-17 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: Convert link names and duplicate names with g_filename_to/from_utf8(). (#103721) Patch from hidetoshi.tajima@sun.com
* Convert new directory name with g_filename_from_utf8(). (#90154)Alexander Larsson2003-01-161-1/+5
| | | | | | | 2003-01-16 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c (nautilus_file_operations_new_folder): Convert new directory name with g_filename_from_utf8(). (#90154)
* Make the desktop icon view store the screen number with the iconJames Willcox2002-12-191-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-19 James Willcox <jwillcox@gnome.org> * libnautilus-private/nautilus-directory-notify.h: * libnautilus-private/nautilus-directory.c: (nautilus_directory_schedule_position_set): * libnautilus-private/nautilus-file-changes-queue.c: (nautilus_file_changes_queue_schedule_position_set), (nautilus_file_changes_consume_changes): * libnautilus-private/nautilus-file-changes-queue.h: * libnautilus-private/nautilus-file-operations.c: (icon_position_iterator_new), (apply_one_position), (nautilus_file_operations_copy_move): * libnautilus-private/nautilus-icon-dnd.c: (handle_local_move), (handle_nonlocal_move): * libnautilus-private/nautilus-metadata.h: * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_init): * src/file-manager/fm-directory-view.c: (new_folder_done), (file_changed_callback): * src/file-manager/fm-icon-view.c: (should_show_file_on_screen), (fm_icon_view_remove_file), (fm_icon_view_add_file), (fm_icon_view_file_changed), (fm_icon_view_filter_by_screen), (fm_icon_view_instance_init): * src/file-manager/fm-icon-view.h: Make the desktop icon view store the screen number with the icon positions. Now, a given icon appears on one screen only, and you can drag them between screens, etc.
* Better error message when moving a file over a parent directory.Alexander Larsson2002-12-181-2/+17
| | | | | | | 2002-12-18 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c (build_error_string): Better error message when moving a file over a parent directory.
* Only set image of required size, when now pixmap needed, kill old pixmapAlexander Larsson2002-11-211-2/+17
| | | | | | | | | | | 2002-11-21 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-background.c: (image_loading_done_callback): Only set image of required size, when now pixmap needed, kill old pixmap and set color. (free_root_pixmap): New function to free root background image Patch from Brian.Cameron@sun.com
* Fix for #96621 where an invalid URI is passed in the uri_list to move_copyStephen Browne2002-10-241-0/+3
|
* Unref target_uri before returning when eel_uri_is_trashDave Camp2002-08-121-2/+6
| | | | | | | | | | | | | | | | | 2002-08-12 Dave Camp <dave@ximian.com> * libnautilus-private/nautilus-dnd.c: (nautilus_drag_default_drop_action_for_icons): Unref target_uri before returning when eel_uri_is_trash (target_uri_string). * libnautilus-private/nautilus-file-operations.c: (append_basename): Free the filename returned from gnome_vfs_uri_etract_short_name(). * libnautilus-private/nautilus-theme.c: (attributes_free): Free the attributes struct. * libnautilus-private/nautilus-undo-manager.c: (finalize): Free the details struct. * src/nautilus-bookmark-list.c: (append_bookmark_node): Free the mime type string.
* use a timeout for showing the progress dialogFrank Worsley2002-08-111-31/+16
| | | | | | | | | | | | | | | | | | | | | 2002-08-11 Frank Worsley <fworsley@shaw.ca> * libnautilus-private/nautilus-file-operations-progress.h: * libnautilus-private/nautilus-file-operations-progress.c: (nautilus_file_operations_progress_update), (nautilus_file_operations_progress_destroy), (map_callback), (delayed_show_callback), (nautilus_file_operations_progress_new), (nautilus_file_operations_progress_new_file), (nautilus_file_operations_progress_done), (nautilus_file_operations_progress_pause_timeout), (nautilus_file_operations_progress_resume_timeout): use a timeout for showing the progress dialog * libnautilus-private/nautilus-file-operations.c: (create_transfer_dialog), (handle_transfer_vfs_error), (handle_transfer_overwrite), (nautilus_file_operations_copy_move), (nautilus_file_operations_delete), (do_empty_trash): modified to support timeouts
* fall back to the other routines if source_name is NULL [ eg. permissionMichael Meeks2002-07-311-8/+4
| | | | | | | | | 2002-07-31 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-file-operations.c (build_error_string): fall back to the other routines if source_name is NULL [ eg. permission failure moving a whole directory not a single file ] #87686
* ui-review fixes to add an icon to the 'Empty' button, add a mnemonic, makeDamon Chaplin2002-07-121-12/+41
| | | | | | | | | | 2002-07-12 Damon Chaplin <damon@ximian.com> * libnautilus-private/nautilus-file-operations.c (confirm_empty_trash): ui-review fixes to add an icon to the 'Empty' button, add a mnemonic, make 'Empty' the default button, and change the title. Fixes bug #85666. (Though I didn't make it non-modal as that is a bit awkward.)
* Bump version numberNAUTILUS_1_1_16Alex Larsson2002-05-131-1/+1
| | | | | | | | | | | | | | 2002-05-13 Alex Larsson <alexl@redhat.com> * configure.in: * NEWS: Bump version number 2002-05-13 Alex Larsson <alexl@redhat.com> * libnautilus-private/nautilus-file-operations.c: Make empty trash confirmation dialog title say "Empty Trash?" instead of "Delete Trash Contents?".
* Abort on GTK_RESPONSE_DELETE_EVENT. Fixes #78948.Anders Carlsson2002-04-191-0/+1
| | | | | | | | 2002-04-19 Anders Carlsson <andersca@gnu.org> * libnautilus-private/nautilus-file-operations.c (handle_transfer_vfs_error): Abort on GTK_RESPONSE_DELETE_EVENT. Fixes #78948.
* Share code between different link implementations so that home directoryDave Emory Watson2002-03-281-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-27 Dave Emory Watson <dwatson@cs.ucr.edu> * libnautilus-private/nautilus-link.c, libnautilus-private/nautilus-link.h: (nautilus_link_local_is_volume_link), (nautilus_link_local_is_home_link), (nautilus_link_local_is_trash_link), (nautilus_link_local_is_special_link): Share code between different link implementations so that home directory link behavior can be controlled from one place. * libnautilus-private/nautilus-link-desktop-file.c, libnautilus-private/nautilus-link-desktop-file.h: (nautilus_link_desktop_file_local_is_volume_link), (nautilus_link_desktop_file_local_is_home_link), (nautilus_link_desktop_file_local_is_trash_link): Remove. * libnautilus-private/nautilus-link-historical.h, libnautilus-private/nautilus-link-historical.c: (nautilus_link_historical_local_is_volume_link), (nautilus_link_historical_local_is_home_link), (nautilus_link_historical_local_is_trash_link): Remove. * libnautilus-private/nautilus-file-operations.c: (is_special_link): Use nautilus_link_local_is_special_link. src/file-manager/fm-directory-view.c: (is_link_type_special): Remove. (special_link_in_selection): Use nautilus_link_local_is_special_link. * src/file-manager/fm-desktop-icon-view.c: (update_home_link_and_delete_copies): Don't recreate the home directory link when desktop==home.
* Move reset constant into header.Darin Adler2002-03-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-private/nautilus-dnd.h: Move reset constant into header. * libnautilus-private/nautilus-file.c: (nautilus_file_get_display_name): Use g_locale_to_utf8, so this works even when G_BROKEN_FILENAMES is not set. * libnautilus-private/nautilus-icon-dnd.c: Rearrange and clean up code a bit. * src/nautilus-property-browser.c: (nautilus_property_browser_destroy), (add_new_pattern), (show_color_selection_window), (add_new_color), (add_new_emblem): * src/nautilus-sidebar-title.c: (update_icon): Get rid of dead code that gets uri and doesn't use it. It's been showing up in bug reports too, so this is especially nice. * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (nautilus_window_manage_views_destroy), (nautilus_window_manage_views_finalize): Break this up into two functions again. * src/nautilus-window.c: (nautilus_window_destroy): Re-add this, because some of the cleanup has to be done at destroy time. (nautilus_window_finalize): Move some of this out. (nautilus_window_class_init): Set up both. * components/text/nautilus-text-view.c: * components/tree/nautilus-tree-model.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-program-choosing.c: * src/file-manager/fm-directory-view.c: * src/nautilus-bookmark-list.c: Miscellaneous porting to new names of functions, getting off less-desirable functions.
* pass a widget context to help pango.Michael Meeks2002-02-271-57/+31
| | | | | | | | | | | | | | 2002-02-27 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-file-operations.c (handle_transfer_overwrite, handle_transfer_vfs_error), (handle_transfer_overwrite): pass a widget context to help pango. (extract_and_ellipsize_file_name_for_dialog), (format_and_ellipsize_uri_for_dialog): pass pango context to ellipsization. (ellipsize_string_for_dialog): re-implement for pango. (get_label_font): kill.
* kill deprecated code, use gtk_window_set_transient instead.Michael Meeks2002-02-251-68/+3
| | | | | | | | | | | | | | | | | | 2002-02-25 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-file-operations.c (fit_rect_on_screen, center_dialog_over_rect), (center_dialog_over_window): kill deprecated code, use gtk_window_set_transient instead. * libnautilus-private/nautilus-file-operations-progress.c (nautilus_file_operations_progress_init): setup the default dialog width instead of the bar's. 2002-02-21 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-customization-data.c (add_reset_text): port, requires new eel API.
* fix my fixes as Michael Meeks suggested:Gediminas Paulauskas2002-02-231-0/+2
| | | | | | | | |         default:         }         is almost certainly broken; you need a break; in there. You should not need a '; break;' or your compiler is hosed ;-)
* remove obsolete GNOME_COMMON_INIT and GNOME_PLATFORM_GNOME_2 macros.Gediminas Paulauskas2002-02-221-2/+0
| | | | | | | | | | | | | | | | 2002-02-22 Gediminas Paulauskas <menesis@delfi.lt> * configure.in: remove obsolete GNOME_COMMON_INIT and GNOME_PLATFORM_GNOME_2 macros. * libnautilus-private/nautilus-file-operations.c (handle_transfer_duplicate): * libnautilus-private/nautilus-icon-dnd.c (nautilus_icon_container_get_drop_action): * libnautilus-private/nautilus-volume-monitor.c (mount_volume_deactivate): remove empty default: label to fix warning on gcc 3. * libnautilus-private/nautilus-icon-container.c (clear_drag_state): fix typo.
* setup both the rgba and GdkColor variants. (update_label_color): upd.Michael Meeks2002-02-191-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-17 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_theme_changed): setup both the rgba and GdkColor variants. (update_label_color): upd. color handling. (alloc_colors): allocate the colors on realize 2002-02-15 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_get_label_color): return the colors we need, grab them from the style's text information though. 2002-02-14 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-canvas-item.c (nautilus_icon_canvas_item_get_property), (nautilus_icon_canvas_item_set_property): port to properties. (draw_or_measure_label_text): update color handling, could we re-use the gc here ? (draw_stretch_handles): upd gc unref. (nautilus_icon_canvas_item_class_init): upd. * libnautilus-private/nautilus-theme.c (nautilus_pixmap_file_may_be_local), (nautilus_theme_install_user_theme), (nautilus_theme_make_preview_pixbuf), (theme_get_property), (load_theme_document): upd. file tests. * libnautilus-private/nautilus-monitor.c (get_event_uri): use g_build_filename. * libnautilus-private/nautilus-find-icon-image.c (get_user_emblem_path, make_full_icon_path), (make_full_icon_path): upd. file test. * libnautilus-private/nautilus-file-utilities.c (nautilus_pixmap_file), (nautilus_get_data_file_path), (nautilus_get_user_directory), (nautilus_get_desktop_directory): upd. file tests. * libnautilus-private/nautilus-directory-metafile.c (nautilus_directory_get_boolean_file_metadata): use strcasecmp not ascii_strdown to save yet more malloc locking penalty. * libnautilus-private/nautilus-directory-background.c (nautilus_file_background_receive_root_window_changes), (desktop_background_destroyed_callback): upd. root window macro. (nautilus_connect_background_to_file_metadata), (initialize_background_from_settings), (image_loading_done_callback): upd g_signal bits. * libnautilus-private/nautilus-volume-monitor.c (nautilus_volume_monitor_class_init): upd file test. * libnautilus-private/nautilus-undo-signal-handlers.c (nautilus_undo_tear_down_nautilus_entry_for_undo): upd. * libnautilus-private/nautilus-undo-manager.c (nautilus_undo_manager_class_init): upd. signal bits. * libnautilus-private/nautilus-trash-monitor.c (nautilus_trash_monitor_class_init): g_cclosureize. (nautilus_trash_monitor_init): g_signal upds. * libnautilus-private/nautilus-trash-file.c (trash_destroy, nautilus_trash_file_init), (remove_real_file): upd. g_signal bits. * libnautilus-private/nautilus-trash-directory.c (nautilus_trash_directory_init): upd. signal connect. (trash_destroy): upd. signal bits. * libnautilus-private/nautilus-program-choosing.c (get_xalf_prefix): upd. find_program_in_path. * libnautilus-private/nautilus-program-chooser.c (nautilus_program_chooser_init): upd. window policy * libnautilus-private/nautilus-merged-directory.c (merged_remove_real_directory): upd. g_signal. (nautilus_merged_directory_class_init): upd. g_closure * libnautilus-private/nautilus-link-desktop-file.c (nautilus_link_desktop_file_get_link_icon_from_desktop): upd. pixmap location. * libnautilus-private/nautilus-icon-factory.c (nautilus_icon_factory_class_init): upd. marshallers (is_theme_in_user_directory): upd. file test. * libnautilus-private/nautilus-icon-dnd.c (auto_scroll_timeout_callback): do a queue_draw_area instead of a widget_draw. * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_init), (set_pending_icon_to_reveal): g_signal updates. (nautilus_icon_container_new): remove visual push/pop. * libnautilus-private/nautilus-file.c (nautilus_file_fit_date_as_string): upd. julian date get. (nautilus_file_class_init): upd. marshallers. * libnautilus-private/nautilus-file-operations.c (extract_and_ellipsize_file_name_for_dialog): use get_basename. (nautilus_file_operations_copy_move): use gtk stock. * libnautilus-private/nautilus-file-operations-progress.c (nautilus_file_operations_progress_update): use progress_bar_set_fraction. (nautilus_file_operations_progress_init): prune progress setup - these are the defaults. * libnautilus-private/nautilus-entry.c (nautilus_entry_key_press): upd select_region. * libnautilus-private/nautilus-drag-window.c (get_ancestor_blocked_by): upd type_is_a. * libnautilus-private/nautilus-dnd.c (nautilus_drag_finalize), (nautilus_drag_init): g_object ref upd. * libnautilus-private/nautilus-directory.c (nautilus_directory_class_init): marshaller upd.. (nautilus_directory_schedule_metadata_remove), (nautilus_directory_schedule_metadata_copy), (nautilus_directory_schedule_metadata_move): basename upd. * libnautilus-private/nautilus-directory-background.c (desktop_background_realized): g_signal upd. (theme_image_path_to_uri): file test upd. (image_loading_done_callback): object unref on gc & pixmap. (background_changed_callback): g_signal upd. * libnautilus-private/nautilus-bookmark.c (nautilus_bookmark_disconnect_file): g_signal upd. (nautilus_bookmark_uri_known_not_to_exist): upd file test. * libnautilus-private/nautilus-authn-manager.c (authentication_dialog_button_clicked): use GTK_RESPONSE_OK * libnautilus-private/Makefile.am: add deprc. CFLAGS. * libnautilus/Makefile.am: ditto. * configure.in (DISABLE_DEPRECATED_CFLAGS): add. 2002-02-13 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-dnd.c (nautilus_icon_container_free_drag_data): re-enterancy protection.
* Remove gmc link support and calls to gnome_set_metadata.Anders Carlsson2002-01-271-1/+1
| | | | | | | | | | | | | | | | | 2002-01-28 Anders Carlsson <andersca@gnu.org> * libnautilus-private/nautilus-file.c: * libnautilus-private/nautilus-file.h: Remove gmc link support and calls to gnome_set_metadata. * libnautilus-private/nautilus-file-operations.c (create_transfer_dialog): Set transfer_info as user_data. * libnautilus-private/nautilus-file-operations-progress.c: Move stuff to finalize. * libnautilus-private/nautilus-entry.c: Remove cursor obscuring code since that exists in GtkEntry now.
* add comment about how this should be fixedHavoc Pennington2002-01-221-0/+14
| | | | | | | | | | | 2002-01-16 Havoc Pennington <hp@redhat.com> * libnautilus-private/nautilus-file-operations.c (ellipsize_string_for_dialog): add comment about how this should be fixed * components/news/nautilus-news.c (ellipsize_string): add comment about how this should be fixed
* Remove preferences calback in ::finalize.Anders Carlsson2002-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-01-08 Anders Carlsson <andersca@gnu.org> * src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove preferences calback in ::finalize. (nautilus_zoom_control_unload_images): Set image pointers to NULL after unloading images. * src/nautilus-window-menus.c: Remove some userlevel #defines. * src/nautilus-switchable-search-bar.c (nautilus_switchable_search_bar_finalize): Remove the preferences callback in ::finalize instead of ::destroy. * src/nautilus-switchable-navigation-bar.c: Create the search bar lazily. Creating the search bar came up high on the profile when creating new windows, and doing it lazily helps, especially when we don't have medusa support yet. (nautilus_switchable_navigation_bar_finalize): Free details in ::finalize. * src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize): Free details in ::finalize. (nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead. * src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab. (nautilus_sidebar_finalize): Move things from ::finalize to ::destroy. * src/nautilus-preferences-dialog.c (preferences_dialog_populate_themes_group): The image chooser isn't broken anymore so we can enable it now. * src/nautilus-main.c (main): Call gtk_main instead of bonobo_main since bonobo_main is for non-gui apps and won't be affected by gtk_main_quit. * src/nautilus-location-bar.c: Destroy things in ::finalize instead of in ::destroy. * src/nautilus-profiler.c: Port to GtkTextView. * src/nautilus-application.c (nautilus_application_new): Call bonobo_generic_factory_construct_noreg so that we set the IID. (nautilus_application_destroy): Unref the undo manager in ::destroy instead. * libnautilus-private/nautilus-icon-container.c: Use g_list_sort_with_data when sorting icons so we can get rid of the hack_icon_container hack. * libnautilus-private/nautilus-entry.c: Free details struct in ::finalize instead of in ::destroy * libnautilus-private/nautilus-icon-dnd.c (confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES. * libnautilus-private/nautilus-file-operations.c (confirm_empty_trash): Compare with GTK_RESPONSE_YES. So now you know what I've been doing during christmas...
* Fixed to use g_iconv instead of iconv, starting with a patch from JeanDarin Adler2002-01-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus-private/nautilus-desktop-file-loader.c: (validated_strdup): Fixed to use g_iconv instead of iconv, starting with a patch from Jean Schurger <jschurger@schurger.org>. * libnautilus-private/nautilus-font-factory.c: Remove. * libnautilus-private/nautilus-font-factory.h: Remove. * libnautilus-private/Makefile.am: Remove nautilus-font-factory.[ch]. * libnautilus-private/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_finalize), (nautilus_icon_canvas_item_set_arg), (nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text), (nautilus_icon_canvas_item_class_init): Get rid of the "font" arg. We'll have to replace this with something that works with Pango -- maybe just a font name. * src/file-manager/fm-list-view.c: (truncate_middle_callback), (get_cell_text): Turn off the GdkFont ellipsizing code. I hope this just goes away when Anders finishes his port to GtkTextView. * src/file-manager/fm-properties-window.c: (fm_properties_window_class_init), (real_destroy), (real_finalize): Fix a bug where it would try to disconnect a signal on an object that is already NULL by that time. * src/nautilus-profiler.c: (nautilus_profiler_bonobo_ui_report_callback): Disable the dump window, pending a port to GtkTextView instead of GtkText. * components/music/nautilus-music-view.c: * components/news/nautilus-news.c: * components/notes/nautilus-notes.c: * components/text/nautilus-text-view.c: * libnautilus-private/nautilus-file-operations-progress.c: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-icon-container.c: * src/file-manager/fm-icon-view.c: * src/nautilus-sidebar-title.c: Get rid of some includes of unused headers.
* Do fix based on patch from Martin Wehner <mwehner@tfh-berlin.de> toDarin Adler2001-12-091-1/+2
| | | | | | | | | | | | | | | | * libnautilus-private/nautilus-file-operations.c: (handle_transfer_ok): Do fix based on patch from Martin Wehner <mwehner@tfh-berlin.de> to prevent cancel of emptying trash or deleting from core dumping. * Makefile.am: * configure.in: * docs/.cvsignore: * docs/Makefile.am: Add files in the docs directory to tarball. * libnautilus/nautilus-view-standard-main.c: (nautilus_view_standard_main_multi): Whitespace tweak.
* Lots of files. Get rid a lot of unneeded casts.Darin Adler2001-11-091-2/+2
| | | | | * Lots of files. Get rid a lot of unneeded casts.
* Remove Nautilus 1 news. This file is empty for now. Add some renamingDarin Adler2001-11-081-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Remove Nautilus 1 news. This file is empty for now. * RENAMING: Add some renaming ideas. * TODO: Add a tiny porting to-do list. I should take that survey of GNOME2_CONVERSION_COMPLETE that Havoc did and put it in here. * TRADEMARK_NOTICE: Removed this file. Eazel logo isn't in here any more. * Makefile.am: Remove TRADEMARK_NOTICE. * components/help/hyperbola-nav-index.c: * components/mozilla/nautilus-mozilla-content-view.c: * libnautilus-private/nautilus-authn-manager.c: * libnautilus-private/nautilus-file-operations-progress.c: * libnautilus-private/nautilus-file-operations-progress.h: * libnautilus-private/nautilus-file-operations.c: * libnautilus-private/nautilus-icon-dnd.c: * libnautilus-private/nautilus-program-chooser.c: * libnautilus-private/nautilus-program-chooser.h: * libnautilus-private/nautilus-program-choosing.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-search-list-view.c: * src/file-manager/nautilus-indexing-info.c: * src/nautilus-about.c: * src/nautilus-about.h: * src/nautilus-application.c: * src/nautilus-bookmarks-window.c: * src/nautilus-location-bar.c: * src/nautilus-property-browser.c: * src/nautilus-shell.c: * src/nautilus-window-menus.c: * src/nautilus-window.c: First cut at converting to GtkDialog from GnomeDialog.
* Lots of files. Another GtkObject -> GObject pass.Darin Adler2001-11-061-2/+2
| | | | | * Lots of files. Another GtkObject -> GObject pass.
* Tons of files. More GtkObject -> GObject stuff.Darin Adler2001-11-041-2/+2
| | | | | * Tons of files. More GtkObject -> GObject stuff.
* More GNOME 2 work. We now compile up to libnautilus-private and I'mDarin Adler2001-10-281-21/+24
| | | | | | | * Lots of files: More GNOME 2 work. We now compile up to libnautilus-private and I'm working my way through the files in there. Also changed all the initialize_class and initialize to class_init and init.
* Fix #47701, Duplicate numbering scheme does not correctly number the 11th,Benedikt Roth2001-10-011-18/+78
| | | | | | | | | | 2001-10-01 Benedikt Roth <Benedikt.Roth@gmx.net> * libnautilus-private/nautilus-file-operations.c: (parse_previous_duplicate_name), (make_next_duplicate_name), (nautilus_self_check_file_operations): Fix #47701, Duplicate numbering scheme does not correctly number the 11th, 12th, and 13th copies
* Updated bugzilla.eazel.com references to refer to theDarin Adler2001-09-151-2/+2
| | | | | corresponding bugzilla.gnome.org bug. Also updated my email address.
* Updated thanks for recent changes in ChangeLog.Darin Adler2001-07-161-2/+2
| | | | | | | | | | | * THANKS: * check-THANKS.pl: Updated thanks for recent changes in ChangeLog. * libnautilus-private/nautilus-file-operations.c: (build_error_string): * libnautilus-private/nautilus-file.c: (get_description): Updated the people to tell about various warnings.
* Rolled in patch by Juan Pablo Mendoza <pablo_juan@yahoo.com> toDarin Adler2001-06-011-2/+2
| | | | | | | | | make the file dialog show up in the right position instead of showing up in one place and then moving right away. * libnautilus-private/nautilus-file-operations.c: (create_transfer_dialog): Move gtk_show_widget until after the center_dialog_over_window call.