2008-04-30 A. Walton <awalton@gnome.org>
[nautilus.git] / libnautilus-private / nautilus-desktop-directory.h
blob0256c4972ae7e4e8e935e80690ea448442a71ef3
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-desktop-directory.h: Subclass of NautilusDirectory to implement
4 a virtual directory consisting of the desktop directory and the desktop
5 icons
7 Copyright (C) 2003 Red Hat, Inc.
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
19 You should have received a copy of the GNU General Public
20 License along with this program; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
24 Author: Alexander Larsson <alexl@redhat.com>
27 #ifndef NAUTILUS_DESKTOP_DIRECTORY_H
28 #define NAUTILUS_DESKTOP_DIRECTORY_H
30 #include <libnautilus-private/nautilus-directory.h>
32 #define NAUTILUS_TYPE_DESKTOP_DIRECTORY \
33 (nautilus_desktop_directory_get_type ())
34 #define NAUTILUS_DESKTOP_DIRECTORY(obj) \
35 (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_DESKTOP_DIRECTORY, NautilusDesktopDirectory))
36 #define NAUTILUS_DESKTOP_DIRECTORY_CLASS(klass) \
37 (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_DESKTOP_DIRECTORY, NautilusDesktopDirectoryClass))
38 #define NAUTILUS_IS_DESKTOP_DIRECTORY(obj) \
39 (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_DESKTOP_DIRECTORY))
40 #define NAUTILUS_IS_DESKTOP_DIRECTORY_CLASS(klass) \
41 (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_DESKTOP_DIRECTORY))
43 typedef struct NautilusDesktopDirectoryDetails NautilusDesktopDirectoryDetails;
45 typedef struct {
46 NautilusDirectory parent_slot;
47 NautilusDesktopDirectoryDetails *details;
48 } NautilusDesktopDirectory;
50 typedef struct {
51 NautilusDirectoryClass parent_slot;
53 } NautilusDesktopDirectoryClass;
55 GType nautilus_desktop_directory_get_type (void);
56 NautilusDirectory * nautilus_desktop_directory_get_real_directory (NautilusDesktopDirectory *desktop_directory);
58 #endif /* NAUTILUS_DESKTOP_DIRECTORY_H */