1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
6 * Copyright (C) 2000 Eazel, Inc.
8 * Nautilus is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU 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 * Nautilus 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 * General Public License for more details.
18 * You should have received a copy of the GNU General Public
19 * License along with this program; see the file COPYING. If not,
20 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
23 * Author: Maciej Stachowiak <mjs@eazel.com>
26 /* nautilus-navigation-bar.h - Abstract navigation bar class
29 #ifndef NAUTILUS_NAVIGATION_BAR_H
30 #define NAUTILUS_NAVIGATION_BAR_H
32 #include <gtk/gtkhbox.h>
34 #define NAUTILUS_TYPE_NAVIGATION_BAR (nautilus_navigation_bar_get_type ())
35 #define NAUTILUS_NAVIGATION_BAR(obj) \
36 GTK_CHECK_CAST (obj, NAUTILUS_TYPE_NAVIGATION_BAR, NautilusNavigationBar)
37 #define NAUTILUS_NAVIGATION_BAR_CLASS(klass) \
38 GTK_CHECK_CLASS_CAST (klass, NAUTILUS_TYPE_NAVIGATION_BAR, NautilusNavigationBarClass)
39 #define NAUTILUS_IS_NAVIGATION_BAR(obj) \
40 GTK_CHECK_TYPE (obj, NAUTILUS_TYPE_NAVIGATION_BAR)
44 } NautilusNavigationBar
;
47 GtkHBoxClass parent_class
;
50 void (* location_changed
) (NautilusNavigationBar
*bar
,
51 const char *location
);
52 void (* cancel
) (NautilusNavigationBar
*bar
);
55 void (* activate
) (NautilusNavigationBar
*bar
);
56 char * (* get_location
) (NautilusNavigationBar
*bar
);
57 void (* set_location
) (NautilusNavigationBar
*bar
,
58 const char *location
);
60 } NautilusNavigationBarClass
;
62 GType
nautilus_navigation_bar_get_type (void);
63 void nautilus_navigation_bar_activate (NautilusNavigationBar
*bar
);
64 char * nautilus_navigation_bar_get_location (NautilusNavigationBar
*bar
);
65 void nautilus_navigation_bar_set_location (NautilusNavigationBar
*bar
,
66 const char *location
);
68 /* `protected' function meant to be used by subclasses to emit the `location_changed' signal */
69 void nautilus_navigation_bar_location_changed (NautilusNavigationBar
*bar
);
71 #endif /* NAUTILUS_NAVIGATION_BAR_H */