annotate src/bar.h @ 1431:7e180091e0b7

More gboolean and tidy up.
author zas_
date Sat, 14 Mar 2009 11:26:43 +0000
parents 8036c5b779ca
children 607c60506863
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
1 /*
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
2 * Geeqie
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
3 * (C) 2004 John Ellis
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
4 * Copyright (C) 2008 - 2009 The Geeqie Team
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
5 *
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
6 * Author: Vladimir Nadvornik
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
7 *
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
9 * Please read the included file COPYING for more information.
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
11 */
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
12
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
13
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
14 #ifndef BAR_H
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
15 #define BAR_H
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
16
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
17 typedef struct _PaneData PaneData;
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
18
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
19 struct _PaneData {
1387
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
20 /* filled in by pane */
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
21 void (*pane_set_fd)(GtkWidget *pane, FileData *fd);
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
22 gint (*pane_event)(GtkWidget *pane, GdkEvent *event);
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
23 void (*pane_write_config)(GtkWidget *pane, GString *outstr, gint indent);
1343
eebb8d0cb677 give the panes more control over expander title
nadvornik
parents: 1317
diff changeset
24 GtkWidget *title;
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
25 gboolean expanded;
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
26
1387
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
27 /* filled in by bar */
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
28 GtkWidget *bar;
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
29 LayoutWindow *lw;
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
30 };
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
31
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
32
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
33
1387
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
34 GtkWidget *bar_new(LayoutWindow *lw);
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
35 GtkWidget *bar_new_default(LayoutWindow *lw);
6f31fa931d3f simplified bar interface
nadvornik
parents: 1383
diff changeset
36 GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
37
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
38 void bar_close(GtkWidget *bar);
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
39
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
40 void bar_write_config(GtkWidget *bar, GString *outstr, gint indent);
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
41
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
42 void bar_add(GtkWidget *bar, GtkWidget *pane);
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
43
55ea4962887a config file format changed to XML
nadvornik
parents: 1291
diff changeset
44
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
45 void bar_set_fd(GtkWidget *bar, FileData *fd);
1417
8036c5b779ca Tidy up.
zas_
parents: 1389
diff changeset
46 gboolean bar_event(GtkWidget *bar, GdkEvent *event);
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
47
1383
3c9abbc05792 use standard GtkHPaned for sidebar width
nadvornik
parents: 1343
diff changeset
48 gint bar_get_width(GtkWidget *bar);
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
49
1389
c44f21235ffe Use a common function bar_pane_expander_title() to set expanders title widget.
zas_
parents: 1387
diff changeset
50 GtkWidget *bar_pane_expander_title(const gchar *title);
c44f21235ffe Use a common function bar_pane_expander_title() to set expanders title widget.
zas_
parents: 1387
diff changeset
51
1291
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
52 #endif
50ae02a4a675 replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff changeset
53 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */