r1996: Cope slightly better with invalid filenames in various places (reported by
[rox-filer.git] / ROX-Filer / src / panel.h
blob6531e7a7b52fbe1f776b95786c055e9252f47b57
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 #ifndef _PANEL_H
9 #define _PANEL_H
11 #define MENU_MARGIN 32
13 typedef enum {
14 PANEL_TOP,
15 PANEL_BOTTOM,
16 PANEL_LEFT,
17 PANEL_RIGHT,
19 PANEL_NUMBER_OF_SIDES /* This goes last! */
20 } PanelSide;
22 struct _Panel {
23 GtkWidget *window;
24 GtkAdjustment *adj; /* Scroll position of the bar */
25 PanelSide side;
26 guchar *name; /* Leaf name */
28 GtkWidget *before; /* Icons at the left/top end */
29 GtkWidget *after; /* Icons at the right/bottom end */
31 GtkWidget *gap; /* Event box between sides */
34 extern Panel *current_panel[PANEL_NUMBER_OF_SIDES];
36 void panel_init(void);
37 Panel *panel_new(const gchar *name, PanelSide side);
38 void panel_icon_may_update(Icon *icon);
39 void panel_save(Panel *panel);
41 gboolean panel_add(PanelSide side,
42 const gchar *path, const gchar *label, gboolean after);
43 void panel_mark_used(GdkRegion *used);
45 #endif /* _PANEL_H */