#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='


<window window_position="1"  title="Configurer la connexion automatique" width-request="300">
<vbox homogeneous="true">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Attention, un seul utilisateur peut se logguer automatiquement.</small></span>"</label></text>
<hbox homogeneous="true">
<pixmap>
<input file>/usr/share/pixmaps/mini-autologin-off.png</input>
<variable>MINIAUTO</variable>
</pixmap>
 <button>
      <action>pkexec "/usr/local/bin/primtux/mini-auto"</action>
<action>refresh:MINIAUTO</action>
<action>refresh:SUPERAUTO</action>
<action>refresh:MAXIAUTO</action>
      <label>Autologin de Jerry </label>
    </button>
</hbox>
<hbox homogeneous="true">
<pixmap>
<input file>/usr/share/pixmaps/super-autologin-off.png</input>
<variable>SUPERAUTO</variable>
</pixmap>
 <button>
      <action>pkexec "/usr/local/bin/primtux/super-auto"</action>
<action>refresh:MINIAUTO</action>
<action>refresh:SUPERAUTO</action>
<action>refresh:MAXIAUTO</action>
      <label>Autologin de Koda</label>
    </button>
</hbox>
<hbox homogeneous="true">
<pixmap>
<input file>/usr/share/pixmaps/maxi-autologin-off.png</input>
<variable>MAXIAUTO</variable>
</pixmap>
 <button>
      <action>pkexec "/usr/local/bin/primtux/maxi-auto"</action>
<action>refresh:MINIAUTO</action>
<action>refresh:SUPERAUTO</action>
<action>refresh:MAXIAUTO</action>
      <label>Autologin de Léon </label>
    </button>
</hbox>
<hbox homogeneous="true">
 <button>
      <action>pkexec "/usr/local/bin/primtux/no-autologin"</action>
<action>refresh:MINIAUTO</action>
<action>refresh:SUPERAUTO</action>
<action>refresh:MAXIAUTO</action>
      <label>Aucun Autologin</label>
    </button>
</hbox>
</vbox>
</window>
 '
 gtkdialog --program MAIN_DIALOG

