source: trunk/third/nautilus/src/nautilus-navigation-bar.h @ 16900

Revision 16900, 2.5 KB checked in by amb, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16899, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
3/*
4 * Nautilus
5 *
6 * Copyright (C) 2000 Eazel, Inc.
7 *
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.
12 *
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.
17 *
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.
22 *
23 * Author: Maciej Stachowiak <mjs@eazel.com>
24 */
25
26/* nautilus-navigation-bar.h - Abstract navigation bar class
27 */
28
29#ifndef NAUTILUS_NAVIGATION_BAR_H
30#define NAUTILUS_NAVIGATION_BAR_H
31
32#include <eel/eel-generous-bin.h>
33
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)
41
42typedef struct {
43        EelGenerousBin parent;
44} NautilusNavigationBar;
45
46typedef struct {
47        EelGenerousBinClass parent_class;
48
49        /* signals */
50        void         (* location_changed) (NautilusNavigationBar *bar,
51                                           const char            *location);
52
53        /* virtual methods */
54        void         (* activate)         (NautilusNavigationBar *bar);
55        char *       (* get_location)     (NautilusNavigationBar *bar);
56        void         (* set_location)     (NautilusNavigationBar *bar,
57                                           const char            *location);
58
59} NautilusNavigationBarClass;
60
61GtkType nautilus_navigation_bar_get_type         (void);
62void    nautilus_navigation_bar_activate         (NautilusNavigationBar *bar);
63char *  nautilus_navigation_bar_get_location     (NautilusNavigationBar *bar);
64void    nautilus_navigation_bar_set_location     (NautilusNavigationBar *bar,
65                                                  const char            *location);
66
67/* `protected' function meant to be used by subclasses to emit the `location_changed' signal */
68void    nautilus_navigation_bar_location_changed (NautilusNavigationBar *bar);
69
70#endif /* NAUTILUS_NAVIGATION_BAR_H */
Note: See TracBrowser for help on using the repository browser.