On 03.04.2014 22:06, Robert Ancell wrote:> Forwarding this to the lightdm mailing list
>
>
> On 3 April 2014 22:53, Ambroise Diascorn
> <ambroise.diascorn at univ-rennes1.fr>wrote:
>
>> Hello Robert,
>> the button power of lightdm (the distro is Fedora 20) shows Hibernate,
>> Suspend, Shutdown and Restart.
>> The versions of lightdm is lightdm-1.8.5-2.fc20.x86_64, the version of
>> lightdm-gtk is
>> lightdm-gtk-1.6.1-3.fc20.x86_64
>> I wish to show only Restart. How is it possible ?
>>
>> The same items are shown in the button power of Mate, and I wish also
to
>> show only "Restart".
>>
>> Thanks for your answer.
>>
>> Ambroise Diascorn
>>
>> PS: it is possible to answer in french, since I am in University of
Rennes
>> 1
>>
src/lightdm-gtk-greeter.glade:
<object class="GtkMenuItem" id="suspend_menuitem">
<property name="visible">False</property>
<object class="GtkMenuItem" id="hibernate_menuitem">
<property name="visible">False</property>
<object class="GtkMenuItem" id="shutdown_menuitem">
<property name="visible">False</property>
$ exo-csource --strip-comments --strip-content \
> --name=lightdm_gtk_greeter_ui \
> lightdm-gtk-greeter.glade > lightdm-gtk-greeter-ui.h
lightdm-1.9.12/lightdm-gtk-1.8.3(--with-gtk2)
poma