Re: [gnome-flashback] End session dialog improvements
- From: Balló György <ballogyor gmail com>
- To: Mailing list for the Gnome Flashback project <gnome-flashback-list gnome org>
- Subject: Re: [gnome-flashback] End session dialog improvements
- Date: Wed, 22 Oct 2014 22:29:17 +0200
2014-10-22 20:59 GMT+02:00 Alberts Muktupāvels <alberts muktupavels gmail com>:
1. Add support for suspend and hibernate with logind. This adds
'Suspend', 'Hibernate' and 'Hybrid Sleep' buttons to the shutdown
dialog if logind is available on the system, and the user is allowed
for these actions.
I agree that we should add these options, but I would like this to be done
in different way.
1) GNOME Flashback.
1.1) Add new enums to FlashbackLogoutAction -
FLASHBACK_LOGOUT_ACTION_HIBERNATE, FLASHBACK_LOGOUT_ACTION_SUSPEND,
FLASHBACK_LOGOUT_ACTION_HYBRID_SLEEP.
1.2) Update update_dialog_text, setup_dialog for new actions.
1.3) Update inhibit_dialog_response to emit confirmed for new actions
1.4) Update org.gnome.SessionManager.EndSessionDialog.xml:
1.4.1) Update summary for dialog types - 3 for .., 4 for ..., 5 for.
1.4.2) Add new signals - ConfirmedHibernate, ConfirmedSuspend,
ConfirmedHybridSleep
2) GNOME Panel.
Did not think much here but I think that we should do something like this.
2.1) First i think we should update panel-session-manager.
2.1.1) Add new proxy for communication directly with EndSessionDialog.
Should connect to new signals ConfirmedHibernetate, ConfirmedSuspend,
ConfirmedHybridSleep.
2.1.2) Add new functions that will return if these new options are
available to user. Just like panel_session_manager_is_shutdown_available.
2.1.3) Add new functions to request new actions. Just like
panel_session_manager_request_shutdown, but only using end session dialog
proxy and calling directly Open method.
2.1.4) Update user-menu. Here I want see ubuntu style - all available
options should be shown here. - Logout, Reboot, Shutdown, Hibernate,
Suspend, Hybrid Sleep.
I would like to leave end-session-dialog for only showing dialog to
confirm or cancel action. Also I do not like adding extra buttons to dialog.
What do you think about this?
I already done GNOME Flashback part.
It's a much more complicated implementation than mine, but fine for me
if you implement this. Why don't you call logind directly from the end
session dialog rather than sending the signal back to the panel? I
would prefer if the end session dialog would be able to do
suspend/hibernate on its own, without the panel.
And please make sure that the accept button gets the focus by default.
(See the has_focus property in my patch.)
--
György Balló
Arch Linux Trusted User
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]