~cairo-dock-team/ubuntu/quantal/cairo-dock-plug-ins/3.1.0

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2012-08-19 00:37:51 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20120819003751-rcy2836qb5jfj31i
Tags: 3.0.99.beta1-0ubuntu1
* New upstream beta release.
* Upstream ChangeLog (main changes):
 - Better integration of Unity: support of the Launcher API and better
    support of indicators
 - All configuration windows have been merged into a single one.
 - Added progress bars in several applets and in the Dbus API
 - The Music Player applet can control players in the systray.
 - Icons of the taskbar can be separated from launchers or not
 - And as always ... various bug fixes and improvements :-)
* Fixed one bug reported on Launchpad:
 - Bookmark name in thunar wrong when shortcut added on plugin (LP: #995634)
* debian: Used 'wrap-and-sort' tool
* debian/control:
 - Bump Cairo-Dock version
 - Updated my email address
* debian/rules:
 - Added Disks, Global-Menu and Doncky applets.
* debian/cairo-dock-plug-ins.install:
 - Added 'appmenu-registrar' ('Global-Menu' applet)
    and 'cairo-dock-unity-bridge' ('Dbus' applet)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        //\_______________ On (re)lance l'eteignage programme.
76
76
        cd_logout_set_timer ();
77
77
        
78
 
        //\_______________ On surveille le reboot necessaire.
79
 
        cairo_dock_fm_add_monitor_full (CD_REBOOT_NEEDED_FILE, FALSE, NULL, (CairoDockFMMonitorCallback) cd_logout_check_reboot_required, NULL);
 
78
        //\_______________ We monitor files in order to know if a reboot/logout is needed
 
79
        cairo_dock_fm_add_monitor_full (CD_REBOOT_NEEDED_FILE, FALSE, NULL, (CairoDockFMMonitorCallback) cd_logout_check_reboot_logout_required, (gpointer) CD_REBOOT_NEEDED);
 
80
        // maybe not very clean to directly use 'CD_REBOOT_NEEDED' but it's just to not use two new variables for this tiny enum ;)
80
81
        cd_logout_check_reboot_required_init ();
 
82
 
 
83
        /* We are waiting for the decision of 'session-migration' devs
 
84
         * if we can warn the user (if it's really useful...) or not
 
85
         * if the session has to be restarted and which file has to be monitored...
 
86
         * => Temporally disable it.
 
87
         */
 
88
        // cairo_dock_fm_add_monitor_full (cd_logout_get_session_migration_filename (), FALSE, NULL, (CairoDockFMMonitorCallback) cd_logout_check_reboot_logout_required, (gpointer) CD_LOGOUT_NEEDED);
 
89
        // cd_logout_check_logout_required_init ();
81
90
CD_APPLET_INIT_END
82
91
 
83
92
 
113
122
 
114
123
                // the icon can be changed.
115
124
                cd_logout_check_reboot_required_init ();
 
125
                // cd_logout_check_logout_required_init ();
116
126
                
117
127
                cd_keybinder_rebind (myData.pKeyBinding, myConfig.cShortkey, NULL);
118
128
                cd_keybinder_rebind (myData.pKeyBinding2, myConfig.cShortkey2, NULL);