]> Pileus Git - ~andy/gtk/blob - gtk/gtkpathbar.h
add missing structures.
[~andy/gtk] / gtk / gtkpathbar.h
1 /* gtkpathbar.h
2  * Copyright (C) 2004  Red Hat, Inc.,  Jonathan Blandford <jrb@gnome.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_PATH_BAR__
21 #define __GTK_PATH_BAR__
22
23 #include "gtkcontainer.h"
24 #include "gtkfilesystem.h"
25
26 G_BEGIN_DECLS
27
28 typedef struct _GtkPathBar      GtkPathBar;
29 typedef struct _GtkPathBarClass GtkPathBarClass;
30
31
32 #define GTK_TYPE_PATH_BAR                 (gtk_path_bar_get_type ())
33 #define GTK_PATH_BAR(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PATH_BAR, GtkPathBar))
34 #define GTK_PATH_BAR_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PATH_BAR, GtkPathBarClass))
35 #define GTK_IS_PATH_BAR(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PATH_BAR))
36 #define GTK_IS_PATH_BAR_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PATH_BAR))
37 #define GTK_PATH_BAR_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PATH_BAR, GtkPathBarClass))
38
39 struct _GtkPathBar
40 {
41   GtkContainer parent;
42
43   GtkFileSystem *file_system;
44   GtkFilePath *root_path;
45   GtkFilePath *home_path;
46   GtkFilePath *desktop_path;
47
48   GdkPixbuf *root_icon;
49   GdkPixbuf *home_icon;
50   GdkPixbuf *desktop_icon;
51
52   GList *button_list;
53   GList *first_scrolled_button;
54   GtkWidget *up_slider_button;
55   GtkWidget *down_slider_button;
56   guint settings_signal_id;
57   guint timer;
58   gint icon_size;
59   gint16 slider_width;
60   gint16 spacing;
61   gint16 button_offset;
62   guint slider_visible : 1;
63   guint ignore_click : 1;
64   guint need_timer;
65 };
66
67 struct _GtkPathBarClass
68 {
69   GtkContainerClass parent_class;
70
71   void (* path_clicked) (GtkPathBar  *path_bar,
72                          GtkFilePath *file_path,
73                          gboolean     child_is_hidden);
74 };
75
76 GType    gtk_path_bar_get_type (void) G_GNUC_CONST;
77 void     _gtk_path_bar_set_file_system (GtkPathBar         *path_bar,
78                                         GtkFileSystem      *file_system);
79 gboolean _gtk_path_bar_set_path        (GtkPathBar         *path_bar,
80                                         const GtkFilePath  *file_path,
81                                         GError            **error);
82 void     _gtk_path_bar_up              (GtkPathBar *path_bar);
83 void     _gtk_path_bar_down            (GtkPathBar *path_bar);
84
85 G_END_DECLS
86
87 #endif /* __GTK_PATH_BAR__ */