Use a common function bar_pane_expander_title() to set expanders title widget.
[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         /* filled in by pane */
21         void (*pane_set_fd)(GtkWidget *pane, FileData *fd);
22         gint (*pane_event)(GtkWidget *pane, GdkEvent *event);
23         void (*pane_write_config)(GtkWidget *pane, GString *outstr, gint indent);
24         GtkWidget *title;
25         gboolean expanded;
26         
27         /* filled in by bar */
28         GtkWidget *bar;
29         LayoutWindow *lw;
30 };
31
32
33
34 GtkWidget *bar_new(LayoutWindow *lw);
35 GtkWidget *bar_new_default(LayoutWindow *lw);
36 GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
37
38 void bar_close(GtkWidget *bar);
39
40 void bar_write_config(GtkWidget *bar, GString *outstr, gint indent);
41
42 void bar_add(GtkWidget *bar, GtkWidget *pane);
43
44
45 void bar_set_fd(GtkWidget *bar, FileData *fd);
46 gint bar_event(GtkWidget *bar, GdkEvent *event);
47
48 gint bar_get_width(GtkWidget *bar);
49
50 GtkWidget *bar_pane_expander_title(const gchar *title);
51
52 #endif
53 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */