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 692517 - manager: Add InhibitedFor D-Bus property
manager: Add InhibitedFor D-Bus property
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
unspecified
Other All
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-25 10:43 UTC by Bastien Nocera
Modified: 2013-01-25 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manager: Add InhibitedFor D-Bus property (7.64 KB, patch)
2013-01-25 10:43 UTC, Bastien Nocera
reviewed Details | Review
manager: Add InhibitedActions D-Bus property (7.75 KB, patch)
2013-01-25 13:31 UTC, Bastien Nocera
none Details | Review
manager: Add InhibitedActions D-Bus property (7.76 KB, patch)
2013-01-25 13:34 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2013-01-25 10:43:39 UTC
.
Comment 1 Bastien Nocera 2013-01-25 10:43:41 UTC
Created attachment 234379 [details] [review]
manager: Add InhibitedFor D-Bus property

This makes it easier for system-level applications to check
whether a particular action is inhibited without calling
"IsInhibited" for each action separately.
Comment 2 Matthias Clasen 2013-01-25 12:04:30 UTC
Review of attachment 234379 [details] [review]:

::: gnome-session/gsm-manager.c
@@ +2652,3 @@
+        /**
+         * GsmManager::inhibited-for
+         *

I think you need a trailing : here to make gtk-doc happy. But then, gtk-doc never comes here anyway...

I could bikeshed on the name; 'for' in a property name like that doesn't look great to me. Maybe 'inhibited-actions' ?
Comment 3 Bastien Nocera 2013-01-25 13:31:16 UTC
Created attachment 234388 [details] [review]
manager: Add InhibitedActions D-Bus property

This makes it easier for system-level applications to check
whether a particular action is inhibited without calling
"IsInhibited" for each action separately.
Comment 4 Bastien Nocera 2013-01-25 13:32:28 UTC
(In reply to comment #2)
> Review of attachment 234379 [details] [review]:
> 
> ::: gnome-session/gsm-manager.c
> @@ +2652,3 @@
> +        /**
> +         * GsmManager::inhibited-for
> +         *
> 
> I think you need a trailing : here to make gtk-doc happy. But then, gtk-doc
> never comes here anyway...

It's consistent with the other comments above properties in this code.

> I could bikeshed on the name; 'for' in a property name like that doesn't look
> great to me. Maybe 'inhibited-actions' ?

Done.
Comment 5 Bastien Nocera 2013-01-25 13:34:09 UTC
Created attachment 234392 [details] [review]
manager: Add InhibitedActions D-Bus property

This makes it easier for system-level applications to check
whether a particular action is inhibited without calling
"IsInhibited" for each action separately.
Comment 6 Bastien Nocera 2013-01-25 13:40:11 UTC
Attachment 234392 [details] pushed as a0057de - manager: Add InhibitedActions D-Bus property