~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0rc1

« back to all changes in this revision

Viewing changes to shortcuts/src/applet-init.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne, Matthieu Baerts (matttbe), Julien Lavergne
  • Date: 2009-10-05 19:27:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091005192717-mvqvb395guktr401
Tags: 2.0.9-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New upstream release (LP: #435590)
* debian/control: 
 - Remove ${shlibs:Depends} for integration plug-ins to avoid
   pulling shared libraries which are detected automatically.
 - Added curl as depends for cairo-dock-plug-ins
* debian/rules:
 - Add --enable-dnd2share and --enable-musicplayer to enable new applets.
 - Remove --enable-rhythmbox and --enable-nvidia to remove those applets,
   not maintained upstream.
* Update *.install to take all generated applets.

[ Julien Lavergne ]
* Adjust changelog with Daniel Holbach suggestions.
* cairo-dock-plug-ins.changelogs:  Install specific changelog for 2.0.9
* Build-depends on cairo-dock-dev (>= 2.0.9)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
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
20
#include "stdlib.h"
29
21
#include "string.h"
30
22
 
49
41
 
50
42
 
51
43
CD_APPLET_INIT_BEGIN
52
 
        /*if (myIcon->acName == NULL && myDock)
53
 
        {
54
 
                CD_APPLET_SET_NAME_FOR_MY_ICON (SHORTCUTS_DEFAULT_NAME);
55
 
        }*/
56
 
        CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
 
44
        if (myDock)
 
45
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
57
46
        
58
47
        //\_______________ On charge les icones dans un sous-dock.
59
48
        myData.pTask = cairo_dock_new_task (0,
83
72
                //\_______________ On charge les icones dans un sous-dock.
84
73
                cd_shortcuts_reset_all_datas (myApplet);  // stoppe les mesures.
85
74
                
86
 
                /*if (myIcon->acName == NULL && myDock)
87
 
                {
88
 
                        CD_APPLET_SET_NAME_FOR_MY_ICON (SHORTCUTS_DEFAULT_NAME);
89
 
                }*/
90
 
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
 
75
                if (myDock)
 
76
                        CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
91
77
                
92
78
                myData.pTask = cairo_dock_new_task (0,
93
79
                        (CairoDockGetDataAsyncFunc) cd_shortcuts_get_shortcuts_data,
95
81
                        myApplet);
96
82
                cairo_dock_launch_task (myData.pTask);
97
83
        }
98
 
        else if (myDesklet)
 
84
        else if (myDesklet)  // on recharge juste la vue du desklet qui a change de taille.
99
85
        {
100
 
                cairo_dock_set_desklet_renderer_by_name (myDesklet, "Tree", NULL, CAIRO_DOCK_LOAD_ICONS_FOR_DESKLET, NULL);  // on n'a pas besoin du context sur myIcon.
 
86
                const gchar *cDeskletRendererName = NULL;
 
87
                switch (myConfig.iDeskletRendererType)
 
88
                {
 
89
                        case CD_DESKLET_SLIDE :
 
90
                        default :
 
91
                                cDeskletRendererName = "Slide";
 
92
                        break ;
 
93
                        
 
94
                        case CD_DESKLET_TREE :
 
95
                                cDeskletRendererName = "Tree";
 
96
                        break ;
 
97
                }
 
98
                CD_APPLET_SET_DESKLET_RENDERER_WITH_DATA (cDeskletRendererName, NULL);
101
99
        }
102
100
        else
103
101
        {