From d9aebe737fa01926f6362c41ed3da7adca4d02c4 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 11 Apr 2007 09:53:04 +0000 Subject: ** Added spinner widgets svn path=/trunk/; revision=33417 --- widgets/misc/e-spinner.h | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 widgets/misc/e-spinner.h (limited to 'widgets/misc/e-spinner.h') diff --git a/widgets/misc/e-spinner.h b/widgets/misc/e-spinner.h new file mode 100644 index 0000000000..aebe751a8e --- /dev/null +++ b/widgets/misc/e-spinner.h @@ -0,0 +1,73 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* + * Copyright © 2000 Eazel, Inc. + * Copyright © 2004, 2006 Christian Persch + * + * Nautilus is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Nautilus is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Andy Hertzfeld + * + * $Id: ephy-spinner.h 12639 2006-12-12 17:06:55Z chpe $ + */ + +/* + * From Nautilus ephy-spinner.h + */ +#ifndef E_SPINNER_H +#define E_SPINNER_H + +#include +#include + +G_BEGIN_DECLS + +#define E_TYPE_SPINNER (e_spinner_get_type ()) +#define E_SPINNER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_SPINNER, ESpinner)) +#define E_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), E_TYPE_SPINNER, ESpinnerClass)) +#define E_IS_SPINNER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_SPINNER)) +#define E_IS_SPINNER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_SPINNER)) +#define E_SPINNER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TYPE_SPINNER, ESpinnerClass)) + +typedef struct _ESpinner ESpinner; +typedef struct _ESpinnerClass ESpinnerClass; +typedef struct _ESpinnerDetails ESpinnerDetails; + +struct _ESpinner +{ + GtkWidget parent; + + /*< private >*/ + ESpinnerDetails *details; +}; + +struct _ESpinnerClass +{ + GtkWidgetClass parent_class; +}; + +GType e_spinner_get_type (void); + +GtkWidget *e_spinner_new (void); + +void e_spinner_start (ESpinner *throbber); + +void e_spinner_stop (ESpinner *throbber); + +void e_spinner_set_size (ESpinner *spinner, + GtkIconSize size); + +G_END_DECLS + +#endif /* E_SPINNER_H */ -- cgit v1.2.3