~cairo-dock-team/ubuntu/natty/cairo-dock-plug-ins/2.3.0-2.1

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-10 00:05:57 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20100810000557-htcyq9gwo5f7r6ec
Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
CD_APPLET_DEFINITION (N_("logout"),
29
29
        2, 0, 0,
30
 
        CAIRO_DOCK_CATEGORY_DESKTOP,
 
30
        CAIRO_DOCK_CATEGORY_APPLET_DESKTOP,
31
31
        N_("A very simple applet that adds an icon to log out from your session\n"
32
 
        "Left click to log out, middle click to shutdown\n"
33
 
        "You can invert this order if you prefer to shutdown on left-click."),
 
32
        "Left click to log out or change the user, middle click to shutdown or restart\n"
 
33
        "  (you can invert the buttons if you prefer to shutdown on left-click)."),
 
34
        "You can also lock the screen from the menu on right-click,\n"
 
35
        "  and program an automatic shutdown at a given time.\n"
34
36
        "Fabounet (Fabrice Rey)")
35
37
 
36
38
 
72
74
 
73
75
 
74
76
CD_APPLET_RELOAD_BEGIN
75
 
        if (myDesklet)
76
 
        {
77
 
                CD_APPLET_SET_DESKLET_RENDERER ("Simple");
78
 
        }
79
 
        
80
77
        if (CD_APPLET_MY_CONFIG_CHANGED)
81
78
        {
 
79
                if (myDesklet && CD_APPLET_MY_CONTAINER_TYPE_CHANGED)  // we are now in a desklet, set a renderer.
 
80
                {
 
81
                        CD_APPLET_SET_DESKLET_RENDERER ("Simple");
 
82
                }
 
83
                
82
84
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
83
85
        }
84
86
CD_APPLET_RELOAD_END