2008-03-29 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / libnautilus-private / nautilus-column-chooser.h
bloba1d781f51ef5711e65c5c9505303a88ea67598ff
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-column-choose.h - A column chooser widget
5 Copyright (C) 2004 Novell, Inc.
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library 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 The Gnome Library 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 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the column COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Authors: Dave Camp <dave@ximian.com>
25 #ifndef NAUTILUS_COLUMN_CHOOSER_H
26 #define NAUTILUS_COLUMN_CHOOSER_H
28 #include <gtk/gtkhbox.h>
30 #define NAUTILUS_TYPE_COLUMN_CHOOSER (nautilus_column_chooser_get_type ())
31 #define NAUTILUS_COLUMN_CHOOSER(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_COLUMN_CHOOSER, NautilusColumnChooser))
32 #define NAUTILUS_COLUMN_CHOOSER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_COLUMN_CHOOSER, NautilusColumnChooserClass))
33 #define NAUTILUS_IS_COLUMN_CHOOSER(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_COLUMN_CHOOSER))
34 #define NAUTILUS_IS_COLUMN_CHOOSER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_COLUMN_CHOOSER))
36 typedef struct _NautilusColumnChooserDetails NautilusColumnChooserDetails;
38 typedef struct {
39 GtkHBox parent;
41 NautilusColumnChooserDetails *details;
42 } NautilusColumnChooser;
44 typedef struct {
45 GtkHBoxClass parent_slot;
47 void (*changed) (NautilusColumnChooser *chooser);
48 void (*use_default) (NautilusColumnChooser *chooser);
49 } NautilusColumnChooserClass;
51 GType nautilus_column_chooser_get_type (void);
52 GtkWidget *nautilus_column_chooser_new (void);
53 void nautilus_column_chooser_set_settings (NautilusColumnChooser *chooser,
54 char **visible_columns,
55 char **column_order);
56 void nautilus_column_chooser_get_settings (NautilusColumnChooser *chooser,
57 char ***visible_columns,
58 char ***column_order);
60 #endif /* NAUTILUS_COLUMN_CHOOSER_H */