2008-04-30 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / src / nautilus-side-pane.h
blobdce5acde281472f898f04a9d064ccad5ddece594
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-side-pane.c
4 *
5 * Copyright (C) 2002 Ximian, Inc.
6 *
7 * Nautilus is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * Nautilus is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 * Author: Dave Camp <dave@ximian.com>
24 #ifndef NAUTILUS_SIDE_PANE_H
25 #define NAUTILUS_SIDE_PANE_H
27 #include <gtk/gtkvbox.h>
29 G_BEGIN_DECLS
31 #define NAUTILUS_TYPE_SIDE_PANE (nautilus_side_pane_get_type ())
32 #define NAUTILUS_SIDE_PANE(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_SIDE_PANE, NautilusSidePane))
33 #define NAUTILUS_SIDE_PANE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SIDE_PANE, NautilusSidePaneClass))
34 #define NAUTILUS_IS_SIDE_PANE(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_SIDE_PANE))
35 #define NAUTILUS_IS_SIDE_PANE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_SIDE_PANE))
37 typedef struct _NautilusSidePaneDetails NautilusSidePaneDetails;
39 typedef struct {
40 GtkVBox parent;
41 NautilusSidePaneDetails *details;
42 } NautilusSidePane;
44 typedef struct {
45 GtkVBoxClass parent_slot;
47 void (*close_requested) (NautilusSidePane *side_pane);
48 void (*switch_page) (NautilusSidePane *side_pane,
49 GtkWidget *child);
50 } NautilusSidePaneClass;
52 GType nautilus_side_pane_get_type (void);
53 NautilusSidePane *nautilus_side_pane_new (void);
54 void nautilus_side_pane_add_panel (NautilusSidePane *side_pane,
55 GtkWidget *widget,
56 const char *title,
57 const char *tooltip);
58 void nautilus_side_pane_remove_panel (NautilusSidePane *side_pane,
59 GtkWidget *widget);
60 void nautilus_side_pane_show_panel (NautilusSidePane *side_pane,
61 GtkWidget *widget);
62 void nautilus_side_pane_set_panel_image (NautilusSidePane *side_pane,
63 GtkWidget *widget,
64 GdkPixbuf *pixbuf);
65 GtkWidget *nautilus_side_pane_get_current_panel (NautilusSidePane *side_pane);
67 G_END_DECLS
69 #endif /* NAUTILUS_SIDE_PANE_H */