~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

Viewing changes to dialog-rendering/src/applet-init.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-08-26 21:07:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090826210739-gyjuuqezrzuluao4
Tags: upstream-2.0.8.1
ImportĀ upstreamĀ versionĀ 2.0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
* This file is a part of the Cairo-Dock project
 
3
*
 
4
* Copyright : (C) see the 'copyright' file.
 
5
* E-mail    : see the 'copyright' file.
 
6
*
 
7
* This program is free software; you can redistribute it and/or
 
8
* modify it under the terms of the GNU General Public License
 
9
* as published by the Free Software Foundation; either version 3
 
10
* of the License, or (at your option) any later version.
 
11
*
 
12
* This program is distributed in the hope that it will be useful,
 
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
* 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, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
/******************************************************************************
 
21
 
 
22
This file is a part of the cairo-dock program,
 
23
released under the terms of the GNU General Public License.
 
24
 
 
25
Written by Fabrice Rey (for any bug report, please mail me to fabounet@users.berlios.de)
 
26
 
 
27
******************************************************************************/
 
28
#include "stdlib.h"
 
29
 
 
30
#include "applet-config.h"
 
31
#include "applet-decorator-comics.h"
 
32
#include "applet-decorator-modern.h"
 
33
#include "applet-decorator-3Dplane.h"
 
34
#include "applet-decorator-tooltip.h"
 
35
#include "applet-decorator-curly.h"
 
36
#include "applet-renderer-text.h"
 
37
#include "applet-struct.h"
 
38
#include "applet-init.h"
 
39
 
 
40
CD_APPLET_PRE_INIT_BEGIN (N_("dialog rendering"),
 
41
        2,0,0,
 
42
        CAIRO_DOCK_CATEGORY_THEME,
 
43
        N_("This plug-in provides some dialog decorators for dialog bubbles."),
 
44
        "Fabrice Rey (Fabounet)")
 
45
        //\_______________ On definit notre interface.
 
46
        //pInterface->reloadModule = reload;
 
47
        pInterface->reset_config = CD_APPLET_RESET_CONFIG_FUNC;
 
48
        pInterface->reset_data = CD_APPLET_RESET_DATA_FUNC;
 
49
        pInterface->read_conf_file = CD_APPLET_READ_CONFIG_FUNC;
 
50
        pInterface->initModule = CD_APPLET_INIT_FUNC;
 
51
        pInterface->stopModule = CD_APPLET_STOP_FUNC;
 
52
 
 
53
        /*//\_______________ On enregistre les decorateurs (on le fait maintenant au cas ou un dialogue serait affiche pendant le chargement initial).
 
54
        cd_decorator_register_comics ();
 
55
        cd_decorator_register_modern ();
 
56
        cd_decorator_register_3Dplane ();
 
57
        cd_decorator_register_tooltip ();  // By ChAnGFu*
 
58
        cd_decorator_register_curly ();*/
 
59
        
 
60
        //\_______________ On enregistre les moteurs de rendu (on le fait maintenant au cas ou un dialogue serait cree avec pendant le chargement initial).
 
61
        rendering_register_text_dialog_renderer ();
 
62
 
 
63
        CD_APPLET_ATTACH_TO_INTERNAL_MODULE ("Dialogs");
 
64
CD_APPLET_PRE_INIT_END
 
65
 
 
66
 
 
67
CD_APPLET_INIT_BEGIN
 
68
        //\_______________ On enregistre les decorateurs.
 
69
        cd_decorator_register_comics ();
 
70
        cd_decorator_register_modern ();
 
71
        cd_decorator_register_3Dplane ();
 
72
        cd_decorator_register_tooltip ();  // By ChAnGFu
 
73
        cd_decorator_register_curly ();
 
74
        
 
75
        /*if (! cairo_dock_is_loading ())  // plug-in active a la main (en-dehors du chargement du theme).
 
76
                cairo_dock_update_dialog_decorator_list_for_gui ();*/
 
77
CD_APPLET_INIT_END
 
78
 
 
79
 
 
80
CD_APPLET_STOP_BEGIN
 
81
        //\_______________ On enregistre les decorateurs.
 
82
        cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_COMICS_NAME);
 
83
        cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_MODERN_NAME);
 
84
        cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_3DPLANE_NAME);
 
85
        cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_TOOLTIP_NAME);
 
86
        cairo_dock_remove_dialog_decorator (MY_APPLET_DECORATOR_CURLY_NAME);
 
87
        
 
88
        cairo_dock_update_dialog_decorator_list_for_gui ();
 
89
CD_APPLET_STOP_END
 
90
 
 
91
 
 
92
/*CD_APPLET_RELOAD_BEGIN
 
93
        if (CD_APPLET_MY_CONFIG_CHANGED)
 
94
        {
 
95
                // rien a faire.
 
96
        }
 
97
CD_APPLET_RELOAD_END
 
98
*/