]> git.0d.be Git - empathy.git/blob - src/ephy-spinner.h
Merge branch 'debug-window'
[empathy.git] / src / ephy-spinner.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3  * Copyright © 2000 Eazel, Inc.
4  * Copyright © 2004, 2006 Christian Persch
5  *
6  * Nautilus is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * Nautilus is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  * Author: Andy Hertzfeld <andy@eazel.com>
21  *
22  * $Id: ephy-spinner.h 2114 2006-12-25 12:15:00Z mr $
23  */
24
25 #ifndef EPHY_SPINNER_H
26 #define EPHY_SPINNER_H
27
28 #include <gtk/gtk.h>
29
30 G_BEGIN_DECLS
31
32 #define EPHY_TYPE_SPINNER               (ephy_spinner_get_type ())
33 #define EPHY_SPINNER(o)                 (G_TYPE_CHECK_INSTANCE_CAST ((o), EPHY_TYPE_SPINNER, EphySpinner))
34 #define EPHY_SPINNER_CLASS(k)           (G_TYPE_CHECK_CLASS_CAST((k), EPHY_TYPE_SPINNER, EphySpinnerClass))
35 #define EPHY_IS_SPINNER(o)              (G_TYPE_CHECK_INSTANCE_TYPE ((o), EPHY_TYPE_SPINNER))
36 #define EPHY_IS_SPINNER_CLASS(k)        (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_SPINNER))
37 #define EPHY_SPINNER_GET_CLASS(o)       (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_SPINNER, EphySpinnerClass))
38
39 typedef struct _EphySpinner             EphySpinner;
40 typedef struct _EphySpinnerClass        EphySpinnerClass;
41 typedef struct _EphySpinnerDetails      EphySpinnerDetails;
42
43 struct _EphySpinner
44 {
45         GtkWidget parent;
46
47         /*< private >*/
48         EphySpinnerDetails *details;
49 };
50
51 struct _EphySpinnerClass
52 {
53         GtkWidgetClass parent_class;
54 };
55
56 GType           ephy_spinner_get_type   (void);
57
58 GtkWidget      *ephy_spinner_new        (void);
59
60 void            ephy_spinner_start      (EphySpinner *throbber);
61
62 void            ephy_spinner_stop       (EphySpinner *throbber);
63
64 void            ephy_spinner_set_size   (EphySpinner *spinner,
65                                          GtkIconSize size);
66
67 G_END_DECLS
68
69 #endif /* EPHY_SPINNER_H */