mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
![David Zeuthen](/assets/img/avatar_default.png)
2008-02-21 David Zeuthen <davidz@redhat.com> * libnautilus-private/nautilus-autorun.c: (should_autorun_mount): Use g_volume_should_automount() to determine if we should autorun programs on a mount. * libnautilus-private/nautilus-directory-async.c: (nautilus_directory_set_up_request), (nautilus_async_destroying_file), (lacks_filesystem_info), (wants_filesystem_info), (request_is_satisfied), (directory_count_start), (mime_list_start), (filesystem_info_cancel), (filesystem_info_stop), (filesystem_info_state_free), (got_filesystem_info), (query_filesystem_info_callback), (filesystem_info_start), (start_or_stop_io), (nautilus_directory_cancel), (cancel_filesystem_info_for_file), (cancel_loading_attributes), (nautilus_directory_cancel_loading_file_attributes): * libnautilus-private/nautilus-directory-private.h: * libnautilus-private/nautilus-file-attributes.h: Add new filesystem info attribute; right now two bits in NautilusFile's private structure are set; the filesystem::use-preview and filesystem:readonly. * libnautilus-private/nautilus-file-operations.c: (nautilus_file_operations_mount_volume): * src/nautilus-places-sidebar.c: (open_selected_bookmark), (mount_shortcut_cb): Don't inhibit automount from nautilus_file_operations_mount_volume() because then everything will be inhibited as the mount_added callback use it as well. Rather, move the call to inhibit out to the proper call sites. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: (nautilus_file_get_filesystem_use_preview), (nautilus_file_should_show_thumbnail), (get_speed_tradeoff_preference_for_file), (nautilus_file_get_mount): * libnautilus-private/nautilus-file.h: * src/file-manager/fm-directory-view.c: (load_directory): * src/file-manager/fm-icon-view.c: (should_preview_sound): * src/nautilus-window-manage-views.c: (update_for_new_location): Use the new filesystem::use-preview hint to determine if we should preview non-native files (such as gphoto2:// and cdda:// mounts). svn path=/trunk/; revision=13795
48 lines
1.9 KiB
C
48 lines
1.9 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
|
|
|
|
nautilus-file-attributes.h: #defines and other file-attribute-related info
|
|
|
|
Copyright (C) 2000 Eazel, Inc.
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public
|
|
License along with this program; if not, write to the
|
|
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
Author: Darin Adler <darin@bentspoon.com>
|
|
*/
|
|
|
|
#ifndef NAUTILUS_FILE_ATTRIBUTES_H
|
|
#define NAUTILUS_FILE_ATTRIBUTES_H
|
|
|
|
/* Names for NautilusFile attributes. These are used when registering
|
|
* interest in changes to the attributes or when waiting for them.
|
|
*/
|
|
|
|
typedef enum {
|
|
NAUTILUS_FILE_ATTRIBUTE_INFO = 1 << 0, /* All standard info */
|
|
NAUTILUS_FILE_ATTRIBUTE_LINK_INFO = 1 << 1, /* info from desktop links */
|
|
NAUTILUS_FILE_ATTRIBUTE_DEEP_COUNTS = 1 << 2,
|
|
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT = 1 << 3,
|
|
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_MIME_TYPES = 1 << 4,
|
|
NAUTILUS_FILE_ATTRIBUTE_METADATA = 1 << 5,
|
|
NAUTILUS_FILE_ATTRIBUTE_TOP_LEFT_TEXT = 1 << 6,
|
|
NAUTILUS_FILE_ATTRIBUTE_LARGE_TOP_LEFT_TEXT = 1 << 7,
|
|
NAUTILUS_FILE_ATTRIBUTE_EXTENSION_INFO = 1 << 8,
|
|
NAUTILUS_FILE_ATTRIBUTE_THUMBNAIL = 1 << 9,
|
|
NAUTILUS_FILE_ATTRIBUTE_MOUNT = 1 << 10,
|
|
NAUTILUS_FILE_ATTRIBUTE_FILESYSTEM_INFO = 1 << 11,
|
|
} NautilusFileAttributes;
|
|
|
|
#endif /* NAUTILUS_FILE_ATTRIBUTES_H */
|