2008-05-05 Paolo Borelli <pborelli@katamail.com>
[nautilus.git] / src / nautilus-pathbar.h
blobb233c215e3a9f13b56456f05642aec71ae63921e
1 /* nautilus-pathbar.h
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Library General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Library General Public License for more details.
13 * You should have received a copy of the GNU Library General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 * Boston, MA 02111-1307, USA.
21 #ifndef NAUTILUS_PATHBAR_H
22 #define NAUTILUS_PATHBAR_H
24 #include <gtk/gtkcontainer.h>
25 #include <gio/gio.h>
27 typedef struct _NautilusPathBar NautilusPathBar;
28 typedef struct _NautilusPathBarClass NautilusPathBarClass;
31 #define NAUTILUS_TYPE_PATH_BAR (nautilus_path_bar_get_type ())
32 #define NAUTILUS_PATH_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_PATH_BAR, NautilusPathBar))
33 #define NAUTILUS_PATH_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_PATH_BAR, NautilusPathBarClass))
34 #define NAUTILUS_IS_PATH_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_PATH_BAR))
35 #define NAUTILUS_IS_PATH_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_PATH_BAR))
36 #define NAUTILUS_PATH_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_PATH_BAR, NautilusPathBarClass))
38 struct _NautilusPathBar
40 GtkContainer parent;
42 GFile *root_path;
43 GFile *home_path;
44 GFile *desktop_path;
46 GdkPixbuf *root_icon;
47 GdkPixbuf *home_icon;
48 GdkPixbuf *desktop_icon;
50 GList *button_list;
51 GList *first_scrolled_button;
52 GList *fake_root;
53 GtkWidget *up_slider_button;
54 GtkWidget *down_slider_button;
55 guint settings_signal_id;
56 gint icon_size;
57 gint16 slider_width;
58 gint16 spacing;
59 gint16 button_offset;
60 guint timer;
61 guint slider_visible : 1;
62 guint need_timer : 1;
63 guint ignore_click : 1;
66 struct _NautilusPathBarClass
68 GtkContainerClass parent_class;
70 void (* path_clicked) (NautilusPathBar *path_bar,
71 GFile *location);
74 GType nautilus_path_bar_get_type (void) G_GNUC_CONST;
76 gboolean nautilus_path_bar_set_path (NautilusPathBar *path_bar, GFile *file);
77 void nautilus_path_bar_clear_buttons (NautilusPathBar *path_bar);
79 void nautilus_path_bar_up (NautilusPathBar *path_bar);
80 void nautilus_path_bar_down (NautilusPathBar *path_bar);
82 #endif /* NAUTILUS_PATHBAR_H */