Updated Hungarian translation
[evolution.git] / e-util / e-spinner.h
blob7fdac372ddced78f6134eb3f14afdad24fd28fe2
1 /*
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
11 * for more details.
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."
21 #endif
23 #ifndef E_SPINNER_H
24 #define E_SPINNER_H
26 #include <gtk/gtk.h>
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))
35 G_BEGIN_DECLS
37 typedef struct _ESpinner ESpinner;
38 typedef struct _ESpinnerClass ESpinnerClass;
39 typedef struct _ESpinnerPrivate ESpinnerPrivate;
41 struct _ESpinner
43 GtkImage parent;
45 /*< private >*/
46 ESpinnerPrivate *priv;
49 struct _ESpinnerClass
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,
59 gboolean active);
60 void e_spinner_start (ESpinner *spinner);
61 void e_spinner_stop (ESpinner *spinner);
63 G_END_DECLS
65 #endif /* E_SPINNER_H */