mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
3613a86b20
2003-11-05 Alexander Larsson <alexl@redhat.com> * configure.in: Require new gnome-vfs * components/tree/nautilus-tree-view.c: * libnautilus-private/nautilus-desktop-link-monitor.c: * libnautilus-private/nautilus-desktop-link.[ch]: * libnautilus-private/nautilus-monitor.c: * libnautilus-private/nautilus-trash-directory.c: * libnautilus-private/nautilus-trash-monitor.[ch]: * src/nautilus-application.c: Use gnome-vfs-volume-manager instead of nautilus-volume-manager.c * libnautilus-private/nautilus-desktop-icon-file.c: Set the volume on the nautilusfile * libnautilus-private/nautilus-directory-async.c: Load volume info from link * libnautilus-private/nautilus-file-attributes.h: * libnautilus-private/nautilus-mime-actions.c: Add new VOLUMES attribute * libnautilus-private/nautilus-file-private.h: Add has_volume and has_drive to NautilusFile * libnautilus-private/nautilus-file.[ch]: Add has_volume and has_drive to NautilusFile Volumes/drives are sorted separately * libnautilus-private/nautilus-link-desktop-file.[ch]: * libnautilus-private/nautilus-link.[ch]: Read drive and volume id from links * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/nautilus-desktop-icon-view-ui.xml: Remove volume ops. Remove disks menu * src/file-manager/fm-directory-view.c: * src/file-manager/nautilus-directory-view-ui.xml: Implement volume ops using gnome-vfs * src/file-manager/fm-properties-window.c: Handle drives/volumes * src/nautilus-window.c: Make a nicer title for some specific locations * libnautilus-private/nautilus-volume-monitor.[ch]: * libnautilus-private/Makefile.am remove this old crap
69 lines
2.4 KiB
C
69 lines
2.4 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
|
|
/*
|
|
nautilus-trash-monitor.h: Nautilus trash state watcher.
|
|
|
|
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: Pavel Cisler <pavel@eazel.com>
|
|
*/
|
|
|
|
#ifndef NAUTILUS_TRASH_MONITOR_H
|
|
#define NAUTILUS_TRASH_MONITOR_H
|
|
|
|
#include <gtk/gtkobject.h>
|
|
#include <libgnomevfs/gnome-vfs-volume.h>
|
|
|
|
typedef struct NautilusTrashMonitor NautilusTrashMonitor;
|
|
typedef struct NautilusTrashMonitorClass NautilusTrashMonitorClass;
|
|
typedef struct NautilusTrashMonitorDetails NautilusTrashMonitorDetails;
|
|
|
|
#define NAUTILUS_TYPE_TRASH_MONITOR \
|
|
(nautilus_trash_monitor_get_type ())
|
|
#define NAUTILUS_TRASH_MONITOR(obj) \
|
|
(GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_TRASH_MONITOR, NautilusTrashMonitor))
|
|
#define NAUTILUS_TRASH_MONITOR_CLASS(klass) \
|
|
(GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_TRASH_MONITOR, NautilusTrashMonitorClass))
|
|
#define NAUTILUS_IS_TRASH_MONITOR(obj) \
|
|
(GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_TRASH_MONITOR))
|
|
#define NAUTILUS_IS_TRASH_MONITOR_CLASS(klass) \
|
|
(GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_TRASH_MONITOR))
|
|
|
|
struct NautilusTrashMonitor {
|
|
GtkObject object;
|
|
NautilusTrashMonitorDetails *details;
|
|
};
|
|
|
|
struct NautilusTrashMonitorClass {
|
|
GtkObjectClass parent_class;
|
|
|
|
void (* trash_state_changed) (NautilusTrashMonitor *trash_monitor,
|
|
gboolean new_state);
|
|
void (* check_trash_directory_added) (NautilusTrashMonitor *trash_monitor,
|
|
GnomeVFSVolume *volume);
|
|
};
|
|
|
|
GtkType nautilus_trash_monitor_get_type (void);
|
|
|
|
NautilusTrashMonitor *nautilus_trash_monitor_get (void);
|
|
gboolean nautilus_trash_monitor_is_empty (void);
|
|
GList * nautilus_trash_monitor_get_trash_directories (void);
|
|
void nautilus_trash_monitor_add_new_trash_directories (void);
|
|
|
|
#endif
|