replaced bar_info with an universal bar, restored the original
[geeqie.git] / src / bar.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  * Copyright (C) 2008 - 2009 The Geeqie Team
5  *
6  * Author: Vladimir Nadvornik
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13
14 #ifndef BAR_H
15 #define BAR_H
16
17 typedef struct _PaneData PaneData;
18
19 struct _PaneData {
20         void (*pane_set_fd)(GtkWidget *pane, FileData *fd);
21         gint (*pane_event)(GtkWidget *pane, GdkEvent *event);
22         gchar *title;
23         
24         GList *(*list_func)(gpointer);
25         gpointer list_data;
26
27 };
28
29
30
31 GtkWidget *bar_new(GtkWidget *bounding_widget);
32 void bar_close(GtkWidget *bar);
33
34 void bar_set_fd(GtkWidget *bar, FileData *fd);
35 gint bar_event(GtkWidget *bar, GdkEvent *event);
36
37 void bar_set_selection_func(GtkWidget *bar, GList *(*list_func)(gpointer data), gpointer data); 
38
39 /* following functions are common for all panes */
40 void bar_pane_set_selection_func(GtkWidget *pane, GList *(*list_func)(gpointer data), gpointer data); 
41
42 #endif
43 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */