2008-05-05 Paolo Borelli <pborelli@katamail.com>
[nautilus.git] / src / nautilus-sidebar-title.h
blobc6860b983e6c99e933727133424d3839fd5773f8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /*
4 * Nautilus
6 * Copyright (C) 2000 Eazel, Inc.
8 * Nautilus is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program 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
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * Author: Andy Hertzfeld <andy@eazel.com>
26 * This is the header file for the sidebar title, which is part of the sidebar.
29 #ifndef NAUTILUS_SIDEBAR_TITLE_H
30 #define NAUTILUS_SIDEBAR_TITLE_H
32 #include <gtk/gtkvbox.h>
33 #include <eel/eel-background.h>
34 #include <libnautilus-private/nautilus-file.h>
36 #define NAUTILUS_TYPE_SIDEBAR_TITLE (nautilus_sidebar_title_get_type ())
37 #define NAUTILUS_SIDEBAR_TITLE(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_SIDEBAR_TITLE, NautilusSidebarTitle))
38 #define NAUTILUS_SIDEBAR_TITLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_SIDEBAR_TITLE, NautilusSidebarTitleClass))
39 #define NAUTILUS_IS_SIDEBAR_TITLE(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_SIDEBAR_TITLE))
40 #define NAUTILUS_IS_SIDEBAR_TITLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_SIDEBAR_TITLE))
42 typedef struct NautilusSidebarTitleDetails NautilusSidebarTitleDetails;
44 typedef struct
46 GtkVBox box;
47 NautilusSidebarTitleDetails *details;
48 } NautilusSidebarTitle;
50 typedef struct
52 GtkVBoxClass parent_class;
53 } NautilusSidebarTitleClass;
55 GType nautilus_sidebar_title_get_type (void);
56 GtkWidget *nautilus_sidebar_title_new (void);
57 void nautilus_sidebar_title_set_file (NautilusSidebarTitle *sidebar_title,
58 NautilusFile *file,
59 const char *initial_text);
60 void nautilus_sidebar_title_set_text (NautilusSidebarTitle *sidebar_title,
61 const char *new_title);
62 char * nautilus_sidebar_title_get_text (NautilusSidebarTitle *sidebar_title);
63 gboolean nautilus_sidebar_title_hit_test_icon (NautilusSidebarTitle *sidebar_title,
64 int x,
65 int y);
66 void nautilus_sidebar_title_select_text_color (NautilusSidebarTitle *sidebar_title,
67 EelBackground *background,
68 gboolean is_default);
70 #endif /* NAUTILUS_SIDEBAR_TITLE_H */