
    ?gc	                     :    d dl mZ d dlmZ d dl  G d d      Zy)    )SidePage)util)*c                   0    e Zd ZdZ ed      ZdZd Zd Zy)Modulegeneralz"Miscellaneous Cinnamon preferencesprefsc                 Z    t        d      }t        t        d      d|||       }|| _        y )Nzlogging, clickGeneralz
cs-general)module)_r   sidePage)selfcontent_boxkeywordsr   s       ;/usr/share/cinnamon/cinnamon-settings/modules/cs_general.py__init__zModule.__init__   s+    %&AiL,+VZ[     c           
      "   | j                   st        d       t               }| j                  j	                  |       |j                  t        d            }t        j                  j                  t        j                  j                        }t        t        d      dd      }|j                  t        d             |j                  |       |j                  t        d            }t        t        d      d	d
      }|j                  |       t        t        d      d	dt        d      dddd      }|j!                  |d	d
       t#        j$                         dk7  r|j                  t        d            }t        t        d      dd      }|j                  |       t        t        d      ddt        d      dddd      }|j!                  |dd       t        t        d      ddt        d      dddd      }|j!                  |dd       y y y )NzLoading General modulezCompositor Optionsz+Disable compositing for full-screen windowszorg.cinnamon.muffinzunredirect-fullscreen-windowszSelect this option to let full-screen applications skip the compositing manager and run at maximum speed. Unselect it if you're experiencing screen-tearing in full screen mode.zMiscellaneous Optionsz.Enable timer when logging out or shutting downzorg.cinnamon.SessionManagerzquit-delay-togglezTimer delayzquit-time-delaysecondsr   i     <   waylandzMemory limitz-Restart Cinnamon when it uses too much memoryzorg.cinnamon.launcherzmemory-limit-enabledzmemory-limitMBi   d   zCheck frequencyzcheck-frequencyiQ )loadedprintSettingsPager   
add_widgetadd_sectionr   Gtk	SizeGroupnewSizeGroupMode
HORIZONTALGSettingsSwitchset_tooltip_textadd_rowGSettingsSpinButtonadd_reveal_rowr   get_session_type)r   pagesettings
size_groupswitchspins         r   on_module_selectedzModule.on_module_selected   s%   {{*+>DMM$$T*''*>(?@H**3+<+<+G+GHJ$Q'T%UWl  oN  OF##A  'Y  %Z  [V$''*A(BCH$Q'W%XZw  zM  NFV$&q'79VXiklmvkwyz  }B  DE  GI  JD##D*GI\]$$&)3++An,=>(+Z)[]t  wM  N  (*1^+<>UWeghimgnptv{}~  AD  E''.EG]^*1->+?AXZkmnoxmy{|  D  FG  IK  L''.EG]^ 4- r   N)	__name__
__module____qualname__namer   commentcategoryr   r1    r   r   r   r      s"    D45GH!
!_r   r   N)SettingsWidgetsr   binr   xapp.GSettingsWidgetsr   r8   r   r   <module>r<      s    %  #+_ +_r   