Ardour  9.0-pre0-384-ga76afae0e9
gtkpathbar.h
Go to the documentation of this file.
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_H__
21 #define __GTK_PATH_BAR_H__
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 
40 {
42 
44  GFile *root_file;
45  GFile *home_file;
46  GFile *desktop_file;
47 
48  GCancellable *get_info_cancellable;
49 
50  GdkPixbuf *root_icon;
51  GdkPixbuf *home_icon;
52  GdkPixbuf *desktop_icon;
53 
55 
56  GList *button_list;
58  GList *fake_root;
62  gint icon_size;
63  gint16 slider_width;
64  gint16 spacing;
65  gint16 button_offset;
66  guint timer;
67  guint slider_visible : 1;
68  guint need_timer : 1;
69  guint ignore_click : 1;
70  guint scrolling_up : 1;
71  guint scrolling_down : 1;
72 };
73 
75 {
77 
78  void (* path_clicked) (GtkPathBar *path_bar,
79  GFile *file,
80  GFile *child_file,
81  gboolean child_is_hidden);
82 };
83 
84 GType gtk_path_bar_get_type (void) G_GNUC_CONST;
86  GtkFileSystem *file_system);
87 gboolean _gtk_path_bar_set_file (GtkPathBar *path_bar,
88  GFile *file,
89  gboolean keep_trail,
90  GError **error);
91 void _gtk_path_bar_up (GtkPathBar *path_bar);
92 void _gtk_path_bar_down (GtkPathBar *path_bar);
93 
94 G_END_DECLS
95 
96 #endif /* __GTK_PATH_BAR_H__ */
GType gtk_path_bar_get_type(void) G_GNUC_CONST
gboolean _gtk_path_bar_set_file(GtkPathBar *path_bar, GFile *file, gboolean keep_trail, GError **error)
void _gtk_path_bar_down(GtkPathBar *path_bar)
typedefG_BEGIN_DECLS struct _GtkPathBar GtkPathBar
Definition: gtkpathbar.h:28
void _gtk_path_bar_up(GtkPathBar *path_bar)
void _gtk_path_bar_set_file_system(GtkPathBar *path_bar, GtkFileSystem *file_system)
Transmitter error
void(* path_clicked)(GtkPathBar *path_bar, GFile *file, GFile *child_file, gboolean child_is_hidden)
Definition: gtkpathbar.h:78
GtkContainerClass parent_class
Definition: gtkpathbar.h:76
GtkFileSystem * file_system
Definition: gtkpathbar.h:43
GtkWidget * down_slider_button
Definition: gtkpathbar.h:60
GdkPixbuf * home_icon
Definition: gtkpathbar.h:51
GCancellable * get_info_cancellable
Definition: gtkpathbar.h:48
GList * first_scrolled_button
Definition: gtkpathbar.h:57
GdkPixbuf * desktop_icon
Definition: gtkpathbar.h:52
gint icon_size
Definition: gtkpathbar.h:62
guint need_timer
Definition: gtkpathbar.h:68
guint timer
Definition: gtkpathbar.h:66
guint ignore_click
Definition: gtkpathbar.h:69
GFile * root_file
Definition: gtkpathbar.h:44
GtkWidget * up_slider_button
Definition: gtkpathbar.h:59
guint settings_signal_id
Definition: gtkpathbar.h:61
gint16 button_offset
Definition: gtkpathbar.h:65
guint scrolling_up
Definition: gtkpathbar.h:70
GdkWindow * event_window
Definition: gtkpathbar.h:54
guint scrolling_down
Definition: gtkpathbar.h:71
GFile * home_file
Definition: gtkpathbar.h:45
gint16 spacing
Definition: gtkpathbar.h:64
GdkPixbuf * root_icon
Definition: gtkpathbar.h:50
gint16 slider_width
Definition: gtkpathbar.h:63
guint slider_visible
Definition: gtkpathbar.h:67
GtkContainer parent
Definition: gtkpathbar.h:41
GList * fake_root
Definition: gtkpathbar.h:58
GFile * desktop_file
Definition: gtkpathbar.h:46
GList * button_list
Definition: gtkpathbar.h:56