annotate src/ui_spinner.h @ 583:de3e2bc22336

Revert patch 675, and correctly fix gtk assertion failure.
author zas_
date Mon, 05 May 2008 08:32:18 +0000
parents 48c8e49b571c
children 1646720364cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
2 * (SLIK) SimpLIstic sKin functions
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
475
48c8e49b571c updated copyright in source files
nadvornik
parents: 446
diff changeset
4 * Copyright (C) 2008 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef UI_SPINNER_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define UI_SPINNER_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
17
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
18 #define SPINNER_SPEED 100
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
19
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21 extern const guint8 icon_spinner[];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22 extern const guint8 icon_tabcomp[];
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24 /* if path is NULL, the built in spinner is used,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25 * otherwise path must be the location of the first image of the
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26 * spinner without the 00.png portion of the pathname, example:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 * /path/to/spinnerimg_
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30 * the files required are then:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32 * /path/to/spinnerimg_00.png non-animated state
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33 * /path/to/spinnerimg_01.png animation frame 1
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34 * /path/to/spinnerimg_02.png animation frame 2
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 * [continues to last frame...]
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 GtkWidget *spinner_new(const gchar *path, gint interval);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 void spinner_set_interval(GtkWidget *spinner, gint interval);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 void spinner_step(GtkWidget *spinner, gint reset);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43 #endif