Re: [DEV] Improve locking the screen and shutting down, introduce suspend/hibernate

Ray Satiro <[email protected]> Wed, 26 Feb 2014 11:09:02 -0800 (PST)
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Hello Mateusz thank you for your recent changes. I don't know if you and Rob have discussed this already and if there is a conversation about the frontend let me know. My thinking is why not have the pull down integrated in lock, so if you click the caret on the lock button you have some options like sleep shutdown, etc. Any shutdown should probably have confirmation in case someone clicks it by accident or misinterprets it as shutting down the program not shutting down their computer (yes users really will think that). "Are you sure you want to shutdown your computer?" Yes / No. I'm very busy and I can't commit to write it but for the message box it would look like this


string msg = HigUtil::create_alert_text( _("Computer Shutdown Warning"), _("Are you sure you want to shutdown the computer?") );
Gtk::MessageDialog mb_warn( *this, msg, true, Gtk::MESSAGE_WARNING,
 Gtk::BUTTONS_YES_NO, false );
mb_warn.set_title( _("Computer Shutdown Warning") );
mb_warn.get_widget_for_response( Gtk::RESPONSE_NO )->grab_default();
if( mb_warn.run() == Gtk::RESPONSE_YES )

Before showing the message box you'd have to stop the rest break window from being forced on top though and it might be better to close it entirely, I'm not sure how that would play on all platforms. I did that for a client by calling on_skip button but the problem with that in this case is it would mess statistics. If someone shuts down the computer is that skipping a break. I'd argue no.

It's always great to see improvements, thanks again





On Wednesday, February 26, 2014 10:41 AM, Mateusz Jończyk <[email protected]> wrote:
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The screenshot mentioned in the pull request discussion.

- -- 
Pozdrawiam,
Mateusz Jończyk
AEI, Informatyka, Semestr 2 Magisterskich, BDiIS

-----BEGIN PGP SIGNATURE-----
Version:
 GnuPG v1.4.11 (GNU/Linux)
Comment: My public key: 0x2C64C488 on hkp://pool.sks-keyservers.net
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTDgsXAAoJELLT9LcsZMSIVWsH/1WW8vHqJU/eBXfwnC6kzF1s
pxS/kDGs8MjDQcyER2F8MHn7reSQnB+NHkUXDrUQuICze6pJf9d/CxshObX++FRP
ckI56rSEnCXelHAWTSabaIxnGrKAje0nBjHZdfOmGxvgfGaTKDI3tbKOeYvUT/si
wINOVDkDG/5Ek6DXLA5yLywX3RxB13zlNIgW7Pg0Z5XdUkhdbyOdnPpzfH3LG704
B1cxfzxvbtEGBDWVwP9sYnUzGuNJ/nLebSLV8fwK/7SKfo1gHWHfs3d3/Ki9VmPx
GEdg7bPdEPCzti0BqdEINF+jXNwaU0cNetpHbAmEwe8zN9/HrlperIO7pB/pzrI=
=M4fX
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate
 reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Workrave-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/workrave-user

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk

_______________________________________________
Workrave-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/workrave-user