
    ?g                        d dl Z d dlZ ej                  dd       d dlmZ d dlmZ d dl d  ed      fd ed	      fd
 ed      fd ed      fd ed      fd ed      fd ed      fd ed      fd ed      fd ed      fd ed      fd ed      fd ed      fgZ	d  ed       fd ed      fd ed      fd ed      fd! ed"      fd ed      fd# ed$      fd ed      fgZ
d%Zd& Z G d' d(      Zy))    NGtkz3.0)r   )SidePage)*zLock immediately   z	2 seconds   z	5 seconds
   z
10 seconds   z
15 seconds   z
30 seconds<   z1 minutex   z	2 minutes   z	3 minutesi,  z	5 minutesiX  z
10 minutesi  z
30 minutesi  z1 hourNeveri  z
15 minutesi
  z
45 minutesz/usr/share/xscreensaver/config/c                     |rO| j                         s>| j                  t        j                  t        j                  j
                               y y y )N)orientation)
get_header
set_headerr   	SeparatorOrientation
HORIZONTAL)rowbefore	user_datas      ?/usr/share/cinnamon/cinnamon-settings/modules/cs_screensaver.pylist_header_funcr   *   s4    cnn&s}}1K1KLM 'v    c                   6    e Zd ZdZdZ ed      Zd Zd Zd Z	y)ModulescreensaverprefszManage screen lock settingsc                 Z    t        d      }t        t        d      d|||       }|| _        y )Nz screensaver, lock, away, messageScreensaverzcs-screensaver)module)_r   sidePage)selfcontent_boxkeywordsr$   s       r   __init__zModule.__init__3   s-    78Am,.>+^bc r   c                 2    t        j                  ddg       y )Nzxdg-openz http://www.foragoodstrftime.com/)
subprocessPopen)r%   buttons     r   )on_show_custom_format_info_button_clickedz0Module.on_show_custom_format_info_button_clicked8   s    *&HIJr   c                 P   | j                   ry t        d       d}t        j                  j	                  |      | _        t               | j                  _        | j                  j                  | j                  j                         t               }| j                  j                  j                  |dt        d             |j                  t        d            }t        j                  j	                  t        j                   j"                        }t%        t        d      ddt&        t(        |	      }|j+                  t        d
             |j-                  |       |j                  t        d            }t/        t        d      dd      }|j+                  t        d             |j-                  |       t/        t        d      |d      }|j+                  t        d             |j-                  |       t%        t        d      |dt0        t(        |	      }|j+                  t        d             |j3                  ||d       t               }| j                  j                  j                  |dt        d             |j                  t        d            }t        j                  j	                  t        j                   j"                        }t/        t        d      |d      }|j+                  t        d             |j-                  |       t/        t        d      |d      }|j-                  |       t5        t        d      |d|       }|j3                  ||d       t5        t        d!      |d"|       }|j3                  ||d       t7               }t        j8                  t        d#            }|j;                  d$| j<                         |j?                  |d%d%d&       |j3                  ||d       tA        t        d'      dd(|       }|j-                  |       tA        t        d)      dd*|       }|j-                  |       |j                  t        d+            }t5        t        d,      |d-      }|jC                  |jD                  d%d%d&t        jF                  jH                         |j+                  t        d.             |j-                  |       |j-                  tA        t        d/      dd0             t/        t        d1      |d2      }|j+                  t        d3             |j-                  |       |j                  t        d4            }t/        t        d5      |d6      }|j+                  t        d7             |j-                  |       t/        t        d8      |d9      }|j+                  t        d:             |j-                  |       t/        t        d;      |d<      }|j+                  t        d=             |j-                  |       t/        t        d>      |d?      }|j+                  t        d@             |j-                  |       t/        t        dA      |dB      }|j+                  t        dC             |j-                  |       y )DNzLoading Screensaver modulez org.cinnamon.desktop.screensaversettingsSettingszScreensaver settingsz%Delay before starting the screensaverzorg.cinnamon.desktop.sessionz
idle-delay)valtype
size_groupzsThis option defines the amount of time to wait before starting the screensaver, when the computer is not being usedzLock settingsz#Lock the computer when put to sleepz*org.cinnamon.settings-daemon.plugins.powerzlock-on-suspendzPEnable this option to require a password when the computer wakes up from suspendz.Lock the computer after the screensaver startszlock-enabledzEnable this option to require a password when the screen turns itself off, or when the screensaver activates after a period of inactivityzDelay before lockingz
lock-delayzThis option defines the amount of time to wait before locking the screen, after showing the screensaver or after turning off the screen	customize	CustomizezDate and TimezAlways show the clockz
show-clockzDShow the clock on the wallpaper instead of just on the unlock screenz!Use a custom date and time formatzuse-custom-formatzTime Formatztime-format)r2   zDate Format: zdate-formatz&Show information on date format syntaxclickedTr   z	Time Fontz	font-timez	Date Fontz	font-datezAway messagez+Show this message when the screen is lockedzdefault-messagez9This is the default message displayed on your lock screenFontzfont-messagez>Ask for a custom message when locking the screen from the menuzask-for-away-messagezTThis option allows you to type a message each time you lock the screen from the menuGeneralzAllow keyboard shortcutszallow-keyboard-shortcutszPAllow shortcuts like volume-control and media keys to be used on the lock screenzShow media player controlszallow-media-controlzEFor compatible players, show playback controls while media is playingzShow album artzshow-album-artz3If available, show album art while media is playingzShow info panelzshow-info-panelz>Show the number of missed notifications and the battery statusz*Allow floating clock and album art widgetszfloating-widgetszfWhen the default screensaver is active, allow the clock and album art widgets to float around randomly)%loadedprintGior0   newr/   SettingsStackr$   stack
add_widgetSettingsPage
add_titledr#   add_sectionr   	SizeGroupSizeGroupModer   GSettingsComboBoxLOCK_INACTIVE_OPTIONSintset_tooltip_textadd_rowGSettingsSwitchLOCK_DELAY_OPTIONSadd_reveal_rowGSettingsEntrySettingsWidgetButtonconnectr-   
pack_startGSettingsFontButtonset_child_packingcontent_widgetPackTypeSTART)r%   schemapager/   r2   widgetr,   s          r   on_module_selectedzModule.on_module_selected;   s   ;;*+3((0+o  !4!45 ~&&tZ:G##A&<$=>]]&&s'8'8'C'CD
"1%L#MOmo{  ~S  ]`  mw  x  #X  !Y  	Z ##Ao$67 #H!IKw  zK  L"t uv  #S!TV\^lm  #n  !o  	p "1%;#<flTfps  AK  L  #l  !m  	n? ~&&t[!K.I##Ao$67]]&&s'8'8'C'CD
 #:!;V\R"h ij  #F!GQde - 0&-T^_0CD/ 2FMV`a0CD!AFGHy$"P"PQ&$a00CD$Q{^5WYdq{| $Q{^5WYdq{| ##An$56"O PRXZkl  !6!6dAs||GYGYZ"] ^_ ,QvY8Z\jkl #c!dfl  oE  F"x yz ##AiL1 #=!>Hbc"t uv  #?!@&J_`"i jk  #3!4f>NO"W XY  #4!5v?PQ"b cd  #O!PRXZlm  #K  !L  	M r   N)
__name__
__module____qualname__namecategoryr#   commentr(   r-   rY    r   r   r   r   .   s(    DH-.G!
Kh!r   r   )r*   girequire_versiongi.repositoryr   SettingsWidgetsr   xapp.GSettingsWidgetsr#   rJ   rE   XSCREENSAVER_PATHr   r   r`   r   r   <module>rg      sT    	   5%    $ # 
++<<<:!K.!K.!K.!L/	1\?	1X; " 1W:1Z=1[>1\?1\?	1\?	1\?	1X;	  6 Nu! u!r   