1
/* $Id: engine.c 4711 2004-11-01 16:10:55Z benny $ */
3
* Copyright (c) 2003-2004 Benedikt Meurer <benny@xfce.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
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
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
28
#include <libxfsm/xfsm-splash-engine.h>
30
#include <engines/balou/balou.h>
33
#define DEFAULT_THEME "Default"
37
engine_setup (XfsmSplashEngine *engine,
40
const gchar *theme_name;
43
theme_name = xfsm_splash_rc_read_entry (rc, "Theme", DEFAULT_THEME);
44
theme = balou_theme_load (theme_name);
46
balou_init (BALOU (engine->user_data),
48
engine->primary_screen,
49
engine->primary_monitor,
55
engine_next (XfsmSplashEngine *engine,
58
Balou *balou = BALOU (engine->user_data);
60
balou_fadeout (balou);
61
balou_fadein (balou, text);
66
engine_run (XfsmSplashEngine *engine,
69
return balou_run (BALOU (engine->user_data), dialog);
74
engine_destroy (XfsmSplashEngine *engine)
76
Balou *balou = BALOU (engine->user_data);
78
if (G_LIKELY (balou != NULL))
80
balou_destroy (balou);
87
engine_init (XfsmSplashEngine *engine)
89
engine->user_data = g_new0 (Balou, 1);
90
engine->setup = engine_setup;
91
engine->next = engine_next;
92
engine->run = engine_run;
93
engine->destroy = engine_destroy;