~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to xfce4-session/splash-screen.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-06 22:01:12 UTC
  • mto: (4.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051106220112-5rusox237ymjghsp
Tags: upstream-4.2.3
ImportĀ upstreamĀ versionĀ 4.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2003 Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
3
 
 * All rights reserved.
4
 
 *
5
 
 * Redistribution and use in source and binary forms, with or without
6
 
 * modification, are permitted provided that the following conditions
7
 
 * are met:
8
 
 *
9
 
 * 1. Redistributions of source code must retain the above copyright
10
 
 *    notice, this list of conditions and the following disclaimer.
11
 
 * 2. Redistributions in binary form must reproduce the above copyright
12
 
 *    notice, this list of conditions and the following disclaimer in the
13
 
 *    documentation and/or other materials provided with the distribution.
14
 
 *
15
 
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
 
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
 
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
 
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19
 
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
 
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
 
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
 
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
 
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
 
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 
 */
26
 
 
27
 
#ifndef __XFSM_SPLASH_SCREEN_H__
28
 
#define __XFSM_SPLASH_SCREEN_H__
29
 
 
30
 
#include <gtk/gtk.h>
31
 
 
32
 
G_BEGIN_DECLS
33
 
 
34
 
#define XFSM_SPLASH_SCREEN(obj)                                         \
35
 
        G_TYPE_CHECK_INSTANCE_CAST(obj, xfsm_splash_screen_get_type(),  \
36
 
                        XfsmSplashScreen)
37
 
#define XFSM_SPLASH_SCREEN_CLASS(klass)                                 \
38
 
        G_TYPE_CHECK_CLASS_CAST(klass, xfsm_splash_screen_get_type(),   \
39
 
                        XfsmSplashScreenClass)
40
 
#define XFSM_IS_SPLASH_SCREEN(obj)                                      \
41
 
        G_TYPE_CHECK_INSTANCE_TYPE(obj, xfsm_splash_screen_get_type())
42
 
 
43
 
typedef struct  _XfsmSplashScreen       XfsmSplashScreen;
44
 
typedef struct  _XfsmSplashScreenClass  XfsmSplashScreenClass;
45
 
 
46
 
struct _XfsmSplashScreenClass
47
 
{
48
 
        GtkWindowClass  parent_class;
49
 
};
50
 
 
51
 
struct _XfsmSplashScreen
52
 
{
53
 
        GtkWindow       window;
54
 
 
55
 
        /* dialog items */
56
 
        GtkWidget       *logoImage;
57
 
        GtkWidget       *progressBar;
58
 
 
59
 
        /* list of logo pictures */
60
 
        guint           pictureCount;
61
 
        guint           pictureCurrent;
62
 
        guint           pictureTimeout;
63
 
        guint           pictureTimeoutId;
64
 
        GdkPixbuf       **pictures;
65
 
 
66
 
        /* */
67
 
        guint           progressMax;
68
 
        guint           progressCount;
69
 
};
70
 
 
71
 
/* prototypes */
72
 
extern GType            xfsm_splash_screen_get_type(void);
73
 
extern GtkWidget        *xfsm_splash_screen_new(const gchar *, guint,
74
 
                                const gchar *);
75
 
extern void             xfsm_splash_screen_set_text(XfsmSplashScreen *,
76
 
                                const gchar *);
77
 
extern void             xfsm_splash_screen_launch(XfsmSplashScreen *,
78
 
                                const gchar *);
79
 
 
80
 
G_END_DECLS
81
 
 
82
 
#endif  /* !__XFSM_SPLASH_SCREEN_H__ */