2 * Copyright (C) 2014 Red Hat, Inc. (www.redhat.com)
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 * Authors: Milan Crha <mcrha@redhat.com>
19 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
20 #error "Only <e-util/e-util.h> should be included directly."
28 #define E_TYPE_SPINNER (e_spinner_get_type ())
29 #define E_SPINNER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_SPINNER, ESpinner))
30 #define E_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TYPE_SPINNER, ESpinnerClass))
31 #define E_IS_SPINNER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_SPINNER))
32 #define E_IS_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_SPINNER))
33 #define E_SPINNER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TYPE_SPINNER, ESpinnerClass))
37 typedef struct _ESpinner ESpinner
;
38 typedef struct _ESpinnerClass ESpinnerClass
;
39 typedef struct _ESpinnerPrivate ESpinnerPrivate
;
46 ESpinnerPrivate
*priv
;
51 GtkImageClass parent_class
;
54 GType
e_spinner_get_type (void);
56 GtkWidget
* e_spinner_new (void);
57 gboolean
e_spinner_get_active (ESpinner
*spinner
);
58 void e_spinner_set_active (ESpinner
*spinner
,
60 void e_spinner_start (ESpinner
*spinner
);
61 void e_spinner_stop (ESpinner
*spinner
);
65 #endif /* E_SPINNER_H */