~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« 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: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "applet-struct.h"
25
25
#include "applet-init.h"
26
26
 
27
 
 
28
27
CD_APPLET_DEFINITION (N_("logout"),
29
28
        2, 0, 0,
30
29
        CAIRO_DOCK_CATEGORY_APPLET_DESKTOP,
48
47
                CD_APPLET_MANAGE_APPLICATION ("gnome-session");  // en fait depuis Gnome 2.28 seulement, avant c'etait x-session-manager.
49
48
        else if (g_iDesktopEnv == CAIRO_DOCK_XFCE)
50
49
                CD_APPLET_MANAGE_APPLICATION ("x-session-manager");
51
 
        /// trouver celui de KDE ...
 
50
        else if (g_iDesktopEnv == CAIRO_DOCK_KDE)
 
51
                CD_APPLET_MANAGE_APPLICATION ("ksmserver");  /// pas du tout sur...
52
52
        
53
53
        //\_______________ On enregistre nos notifications.
54
54
        CD_APPLET_REGISTER_FOR_CLICK_EVENT;
57
57
        
58
58
        //\_______________ On (re)lance l'eteignage programme.
59
59
        cd_logout_set_timer ();
 
60
        
 
61
        //\_______________ On surveille le reboot necessaire.
 
62
        cairo_dock_fm_add_monitor_full (CD_REBOOT_NEEDED_FILE, FALSE, NULL, (CairoDockFMMonitorCallback) cd_logout_check_reboot_required, NULL);
 
63
        cd_logout_check_reboot_required_init ();
60
64
CD_APPLET_INIT_END
61
65
 
62
66
 
70
74
        
71
75
        if (myData.iSidTimer != 0)
72
76
                g_source_remove (myData.iSidTimer);
 
77
        
 
78
        cairo_dock_fm_remove_monitor_full (CD_REBOOT_NEEDED_FILE, FALSE, NULL);
73
79
CD_APPLET_STOP_END
74
80
 
75
81
 
82
88
                }
83
89
                
84
90
                CD_APPLET_SET_DEFAULT_IMAGE_ON_MY_ICON_IF_NONE;  // set the default icon if none is specified in conf.
 
91
 
 
92
                // the icon can be changed.
 
93
                cd_logout_check_reboot_required_init ();
85
94
        }
86
95
CD_APPLET_RELOAD_END