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>
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
48 GdkPixbuf
*desktop_icon
;
51 GList
*first_scrolled_button
;
53 GtkWidget
*up_slider_button
;
54 GtkWidget
*down_slider_button
;
55 guint settings_signal_id
;
61 guint slider_visible
: 1;
63 guint ignore_click
: 1;
66 struct _NautilusPathBarClass
68 GtkContainerClass parent_class
;
70 void (* path_clicked
) (NautilusPathBar
*path_bar
,
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 */