[Pkg-xfce-devel] Bug#732623: Bug#729576: duplicate of bug #726763

Vincent Lefevre vincent at vinc17.net
Wed Dec 25 19:47:02 UTC 2013


On 2013-12-25 20:15:16 +0100, Pascal Dormeau wrote:
> > > Shouldn't it run the lightdm_get_can_* () test at runtime when the
> > > user opens the power_menu ?
> > 
> > When the user opens the menu would be the best, IMHO.
> I do not know how to achieve this. The best I could do to remove the
> gtk_widget_hide calls. The 4 items in the menu show up and the action
> fails when permission is not granted. But it is not user friendly
> since no feedback is given.

What if you call the corresponding lightdm_get_can_ function once
the user has clicked on the menu item?

If the answer is yes, then do the requested action. Otherwise there
are 2 possibilities:

1. Display a dialog box saying that the action is not possible.

2. Display a dialog box saying that the action may fail, and do the
   requested action.

If the lightdm_get_can_* functions can be trusted at this time, then
(1) is the best solution. Otherwise (i.e. lightdm_get_can_* don't say
"yes" though the actions can really be carried out), choose (2).

There you have feedback.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-xfce-devel mailing list