1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-keep-last-vertical-box.h: Subclass of GtkVBox that clips off
4 items that don't fit, except the last one.
6 Copyright (C) 2000 Eazel, Inc.
8 The Gnome Library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 The Gnome Library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with the Gnome Library; see the file COPYING.LIB. If not,
20 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 Author: John Sullivan <sullivan@eazel.com>,
26 #ifndef NAUTILUS_KEEP_LAST_VERTICAL_BOX_H
27 #define NAUTILUS_KEEP_LAST_VERTICAL_BOX_H
29 #include <gtk/gtkvbox.h>
31 #define NAUTILUS_TYPE_KEEP_LAST_VERTICAL_BOX (nautilus_keep_last_vertical_box_get_type ())
32 #define NAUTILUS_KEEP_LAST_VERTICAL_BOX(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_KEEP_LAST_VERTICAL_BOX, NautilusKeepLastVerticalBox))
33 #define NAUTILUS_KEEP_LAST_VERTICAL_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_KEEP_LAST_VERTICAL_BOX, NautilusKeepLastVerticalBoxClass))
34 #define NAUTILUS_IS_KEEP_LAST_VERTICAL_BOX(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_KEEP_LAST_VERTICAL_BOX))
35 #define NAUTILUS_IS_KEEP_LAST_VERTICAL_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_KEEP_LAST_VERTICAL_BOX))
37 typedef struct NautilusKeepLastVerticalBox NautilusKeepLastVerticalBox
;
38 typedef struct NautilusKeepLastVerticalBoxClass NautilusKeepLastVerticalBoxClass
;
40 struct NautilusKeepLastVerticalBox
{
44 struct NautilusKeepLastVerticalBoxClass
{
45 GtkVBoxClass parent_class
;
48 GType
nautilus_keep_last_vertical_box_get_type (void);
49 GtkWidget
*nautilus_keep_last_vertical_box_new (gint spacing
);
51 #endif /* NAUTILUS_KEEP_LAST_VERTICAL_BOX_H */