1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* e-splash.h 3 * 4 * Copyright (C) 2000 Helix Code, Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program 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 GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public 17 * License along with this program; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 * 21 * Author: Ettore Perazzoli 22 */ 23 24 #ifndef _E_SPLASH_H_ 25 #define _E_SPLASH_H_ 26 27 #include <gdk-pixbuf/gdk-pixbuf.h> 28 #include <gtk/gtk.h> 29 30 G_BEGIN_DECLS 31 32 #define E_TYPE_SPLASH (e_splash_get_type ()) 33 #define E_SPLASH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_SPLASH, ESplash)) 34 #define E_SPLASH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_SPLASH, ESplashClass)) 35 #define E_IS_SPLASH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_SPLASH)) 36 #define E_IS_SPLASH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_SPLASH)) 37 38 typedef struct _ESplash ESplash; 39 typedef struct _ESplashPrivate ESplashPrivate; 40 typedef struct _ESplashClass ESplashClass; 41 42 struct _ESplash { 43 GtkWindow parent; 44 45 ESplashPrivate *priv; 46 }; 47 48 struct _ESplashClass { 49 GtkWindowClass parent_class; 50 }; 51 52 GType e_splash_get_type (void); 53 void e_splash_construct (ESplash *splash, 54 GdkPixbuf *splash_image_pixbuf, 55 gint progressbar_position); 56 GtkWidget *e_splash_new (const char *image_file, 57 gint progressbar_position); 58 59 void e_splash_set (ESplash *splash, 60 GdkPixbuf *icon_pixbuf, 61 const gchar *title, 62 const gchar *desc, 63 gfloat progress_percentage); 64 65 G_END_DECLS 66 67 #endif /* _E_SPLASH_H_ */ 68