403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/rhythmbox/plugins/alternative-toolbar/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/rhythmbox/plugins/alternative-toolbar/__pycache__/alttoolbar_preferences.cpython-310.pyc
o

1�b�2�@s�ddlZddlZddlZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
e�dd�ddlmZddlm
Z
Gd	d
�d
�ZGdd�d�ZGd
d�dejej�ZdS)�N)�GObject)�Gio)�Gtk�PeasGtkz1.0)r)�RBc@�:eZdZdZdZGdd�d�Zdd�Zdd�Zd	d
�ZdS)�GSettingzg
    This class manages the different settings that the plugin has to
    access to read or write.
    Nc@�8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
zGSetting.__impl�+ Implementation of the singleton interface cCs�|jdd�|_|jd$idd�dd�dd�d	d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"��|_i|_d#S)%��
            Initializes the singleton interface, assigning all the constants
            used to access the plugin's settings.
            z/org.gnome.rhythmbox.plugins.alternative_toolbar)�PLUGIN�DISPLAY_TYPEzdisplay-type�START_HIDDENzstart-hidden�SHOW_COMPACTzshow-compact�COMPACT_POSzcompact-pos�
PLAYING_LABELz
playing-label�VOLUME_CONTROLzvolume-control�INLINE_LABELzinline-label�ENHANCED_SIDEBARzenhanced-sidebar�	EXPANDERS�	expanders�
SHOW_TOOLTIPSz
show-tooltips�ENHANCED_PLUGINSzenhanced-plugins�REPEAT_TYPEzrepeat-type�SOURCE_TOOLBARzshow-source-toolbar�HORIZ_CATEGORIESzhoriz-categories�APP_MENUzapp-menu-display�
DARK_THEMEz
dark-themeN�)�_enum�Path�	PluginKey�setting��selfrr�H/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_preferences.py�__init__2sJ�
��������	�
���
����
zGSetting.__impl.__init__cCs:z|j|}W|Stj�|�|j|<|j|}Y|S)z[
            Return an instance of Gio.Settings pointing at the selected path.
            )r"r�Settings�new)r$�pathr"rrr%�get_settingOs�zGSetting.__impl.get_settingcCs|�|�|S)zO
            Return the value saved on key from the settings path.
            �r*)r$r)�keyrrr%�	get_value[szGSetting.__impl.get_valuecCs||�|�|<dS)zK
            Set the passed value to key in the settings path.
            Nr+)r$r)r,�valuerrr%�	set_valueaszGSetting.__impl.set_valuecK�tdd|�S�z*
            Create an enumn.
            �Enumr��type�r$�enumsrrr%rg�zGSetting.__impl._enumN)	�__name__�
__module__�__qualname__�__doc__r&r*r-r/rrrrr%�__impl.sr<cC�$tjdur
t��t_tj|jd<dS)� Create singleton instance N�_GSetting__instance)rr?�_GSetting__impl�__dict__r#rrr%r&m�

zGSetting.__init__cC�t|j|�S�z# Delegate access to implementation )�getattrr?�r$�attrrrr%�__getattr__w�zGSetting.__getattr__cC�t|j||�SrD)�setattrr?�r$rGr.rrr%�__setattr__{�zGSetting.__setattr__)	r8r9r:r;r?r@r&rHrMrrrr%r&s?
rc@r)�CoverLocalez'
    This class manages the locale
    Nc@r	)
zCoverLocale.__implr
cCs|jddd�|_dS)r�	rhythmboxzalternative-toolbar)r�
LOCALE_DOMAINN)r�Localer#rrr%r&�s�zCoverLocale.__impl.__init__cCsPt�tjd�t�|t���t�|�t�|t���t�|�t�|�dS)z+
            Change the locale
            �N)	�locale�	setlocale�LC_ALL�bindtextdomainr�
locale_dir�
textdomain�gettext�install)r$�locale_typerrr%�
switch_locale�s

z CoverLocale.__impl.switch_localecCst��dS)zx
            return the string representation of the users locale
            for example
            en_US
            r)rT�getdefaultlocaler#rrr%�
get_locale�szCoverLocale.__impl.get_localecKr0r1r3r5rrr%r�r7zCoverLocale.__impl._enumcCs
t�|�S)zE
            return the translated version of the string
            )rZ)r$r.rrr%�get_translation�s
z"CoverLocale.__impl.get_translationN)	r8r9r:r;r&r]r_rr`rrrr%r<�s	r<cCr=)r>N�_CoverLocale__instance)rOra�_CoverLocale__implrAr#rrr%r&�rBzCoverLocale.__init__cCrCrD)rErarFrrr%rH�rIzCoverLocale.__getattr__cCrJrD)rKrarLrrr%rM�rNzCoverLocale.__setattr__)	r8r9r:r;rarbr&rHrMrrrr%rO�s,
rOc@sReZdZdZdZejejd�Zdd�Z	dd�Z
dd	�Zd
d�Zdd
�Z
dd�ZdS)�Preferencesz�
    Preferences for the Plugins. It holds the settings for
    the plugin and also is the responsible of creating the preferences dialog.
    �AlternativeToolbarPreferencesr3cCs,tj�|�t�|_|j�|jjj�|_dS)zh
        Initialises the preferences, getting an instance of the settings saved
        by Gio.
        N)	r�Objectr&r�gsr*r r�plugin_settingsr#rrr%r&�szPreferences.__init__c
Cstd�d|_t�}|�|jj�t��}|�|jj�|�	t
�|d��|�|�|�
d�}|�|j|jjj�|�d|j�|�
d�|_|j�|jjj|jdtjj�|j�d|j�|�
d�|_|j�|jjj|jdtjj�|�
d	�|_|j�|jjj|jdtjj�|�
d
�|_ |j�|jjj!|j dtjj�|�
d�}|j�|jjj"|dtjj�|�
d�|_#|j�|jjj$|j#dtjj�|�
d
�|_%|j�|jjj&|j%dtjj�|�
d�|_'|j�|jjj(|j'dtjj�|�
d�|_)|j�|jjj*|j)dtjj�|�
d�}|�d|j+�tj,�-�}|j|jjj.}|dk�r9|j/j0�r-|j/j1�r3|�d�n|�d�n|dk�rD|�d�n|�d�|�2��rT|j�d�|�|j�|�
d�}|�3t4d�d�}	|	�d|j5�|�
d�|_6|j�|jjj7|j6dtjj�d|_|�
d�S)z9
        Creates the plugin's preferences dialog
        zDEBUG - create_display_contentsTzui/altpreferences.ui�start_hidden_checkbox�toggled�show_compact_checkbox�active�compact_pos_combobox�playing_label_checkbox�inline_label_checkbox�volume_control_checkbox�enhanced_sidebar_checkbox�tooltips_checkbox�enhanced_plugins_checkbox�dark_theme_checkbox�
modern_switch�notifyrF��infobar�Restart�clicked�category_combobox�preferences_box)8�print�
_first_runrOr]rRrQr�Builder�set_translation_domain�
add_from_file�rb�find_plugin_file�connect_signals�
get_object�
set_activergrfr!r�connect�_start_hidden_checkbox_toggled�
_show_compact�bindrr�SettingsBindFlags�DEFAULT�_show_compact_checkbox_toggled�_compact_posr�_playing_labelr�
_inline_labelrr�_enhanced_sidebarr�_show_tooltipsr�_enhanced_pluginsr�_dark_themer�_modern_switch_stater'�get_defaultr
�props�gtk_shell_shows_app_menu�gtk_shell_shows_menubar�
get_active�
add_button�_�_restart_button_clicked�
_category_posr)
r$�cl�builder�start_hidden�volume_controlrt�default�display_typerw�buttonrrr%�do_create_configure_widget�s�
�

������
��������



�



�
z&Preferences.do_create_configure_widgetcGs$t�d�}tj||gtj�R�dS)NrP)�shutil�which�os�execl�sys�argv)r$�args�exepathrrr%r�Gs
z#Preferences._restart_button_clickedcCs|��|j|jjj<dS�N)r�rgrfr!r)r$�
toggle_buttonrrr%r�Ks�z*Preferences._start_hidden_checkbox_toggledcCs0|��}|j�|�|j�|�|j�|�dSr�)r�r��
set_sensitiver�r�)r$r��enabledrrr%r�Osz*Preferences._show_compact_checkbox_toggledcCs\|��}|j�|�|j�|�|r$|j�d�d|j|jjj<dSd|j|jjj<dS)NTrv�)	r�r�r�r�r�rgrfr!r
)r$�switch�param�staterrr%r�Vsz Preferences._modern_switch_stateN)r8r9r:r;�__gtype_name__r�propertyre�objectr&r�r�r�r�r�rrrr%rc�s	prc)rZrTr�r�r��gir��
gi.repositoryrrr�require_versionrrrrOre�Configurablercrrrr%�<module>s ZF

Youez - 2016 - github.com/yon3zu
LinuXploit