After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645432 - gnome-session will need shell interaction changes to support restart button in shutdown dialog
gnome-session will need shell interaction changes to support restart button i...
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on: 641375
Blocks:
 
 
Reported: 2011-03-21 18:13 UTC by Ray Strode [halfline]
Modified: 2011-03-23 22:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manager: drop request-privileges stuff (9.38 KB, patch)
2011-03-21 21:27 UTC, Ray Strode [halfline]
committed Details | Review
manager: port to latest shell api (12.53 KB, patch)
2011-03-21 21:27 UTC, Ray Strode [halfline]
accepted-commit_now Details | Review
manager: port to latest shell api (12.54 KB, patch)
2011-03-22 02:14 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2011-03-21 18:13:40 UTC
The latest designs for the shutdown dialog in the shell include a "Restart" button.  This means we need to change the shell<->session interface and update the session to use the new interface.
Comment 1 Ray Strode [halfline] 2011-03-21 18:14:10 UTC
(see bug 641375)
Comment 2 Ray Strode [halfline] 2011-03-21 21:27:44 UTC
Created attachment 184005 [details] [review]
manager: drop request-privileges stuff

It's all a farce that immediately returns with hardcoded values.

Eventually, we need a better story here (see bug 585614), but for
now, let's not pretend like we're doing something we aren't.
Comment 3 Ray Strode [halfline] 2011-03-21 21:27:46 UTC
Created attachment 184006 [details] [review]
manager: port to latest shell api

The shell API changed to support multiple
buttons on the log out dialog (see bug 641375)

This commit brings gnome-session up to speed.
Comment 4 Ray Strode [halfline] 2011-03-21 21:28:50 UTC
We need to make sure we coordinate 

attachment 184006 [details] [review] 

with the changes in bug 641375
Comment 5 Vincent Untz 2011-03-21 23:55:22 UTC
Review of attachment 184005 [details] [review]:

That's fine (module detail below). Feel free to commit.

::: gnome-session/gsm-consolekit.c
@@ -138,3 @@
                               1, G_TYPE_POINTER);
 
-        signals [PRIVILEGES_COMPLETED] =

Please also remove PRIVILEGES_COMPLETED from the enum.
Comment 6 Vincent Untz 2011-03-22 00:03:28 UTC
Review of attachment 184006 [details] [review]:

There's a small error, but it's all fine otherwise, thanks for working on this! Please commit when you're ready with the shell change.

::: gnome-session/gsm-manager.c
@@ +3085,3 @@
 static void
+gsm_manager_initiate_forced_logout (GsmManager           *manager,
+                                    GsmManagerLogoutType  logout_type)

I'd prefer a less common name, since this is only used by the signal handlers. Maybe simply keep the old name, since it's the common part to all three handlers.

@@ +3156,3 @@
+        manager->priv->shell_end_session_dialog_confirmed_shutdown_id =
+                g_signal_connect (manager->priv->shell,
+                                  "end-session-dialog-confirmed-logout",

Wrong signal name :-)
Comment 7 Ray Strode [halfline] 2011-03-22 02:04:27 UTC
(In reply to comment #6)
> @@ +3156,3 @@
> +        manager->priv->shell_end_session_dialog_confirmed_shutdown_id =
> +                g_signal_connect (manager->priv->shell,
> +                                  "end-session-dialog-confirmed-logout",
> 
> Wrong signal name :-)
man, no matter how small the patch...
Comment 8 Ray Strode [halfline] 2011-03-22 02:14:14 UTC
Created attachment 184029 [details] [review]
manager: port to latest shell api

The shell API changed to support multiple
buttons on the log out dialog (see bug 641375)

This commit brings gnome-session up to speed.
Comment 9 Ray Strode [halfline] 2011-03-22 02:15:29 UTC
Comment on attachment 184029 [details] [review]
manager: port to latest shell api

(transfering patch status from previous iteration over)
Comment 10 Ray Strode [halfline] 2011-03-23 21:34:53 UTC
So unbelievably¸I never pushed attachment 184029 [details] [review]
Comment 11 Ray Strode [halfline] 2011-03-23 21:53:56 UTC
freeze break request here: http://mail.gnome.org/archives/release-team/2011-March/msg00209.html