__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

 ]e�p���SSKrSSKJs Jr SSKrSSKJr SSKJr SSKJ	r	 SSKJ
r
 SSKJr SrSr
S	r\RSr\S
:�a
SSKrSSKrSSKrO
SSKrSSKJr \S
:�aSSKrSrOSSKrS
rSrSrSrSrSrSr Sr!Sr"S!Sjr#Sr$Sr%"SS\RL5r'"SS\(5r)"SS\(5r*"SS \(5r+g)"�N)�GLib)�GObject)�Gio)�Gtk)�RBc��[[[R"55S-[[R"55-5$)zW
returns float of the major and minor parts of the GTK version
e.g. return float(3.10)
�.)�float�strr�get_major_version�get_minor_version���F/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_rb3compat.py�gtk_versionr#s<����S�*�*�,�-��3��S�*�*�,�-�.�/�/rc�p�SnU"[R5n[URSS5S5$)zl
returns float of the major and minor parts of a pygobject version
e.g. version (3, 9, 5) return float(3.9)
c�2�SRSU55$)Nr	c3�8# �UHn[U5v� M g7f�N�r��.0�vs  r�	<genexpr>�6pygobject_version.<locals>.<lambda>.<locals>.<genexpr>2����"5�1�a�3�q�6�6�1�����join��ts r�<lambda>�#pygobject_version.<locals>.<lambda>2���#�(�(�"5�1�"5�5rr	�r)r�pygobject_versionr
�rsplit)�	to_number�str_versions  rr&r&-s6��
6�I��G�5�5�6�K���#�#�C��+�A�.�/�/rc��SnU"[R5nURSS5nURSS5n[US5[US5:ag[US5[US5:agg)zG
return True if version is less than pygobject_version
i.e. 3.9 < 3.11
c�2�SRSU55$)Nr	c3�8# �UHn[U5v� M g7frrrs  rr�>compare_pygobject_version.<locals>.<lambda>.<locals>.<genexpr>>rrrr s rr"�+compare_pygobject_version.<locals>.<lambda>>r$rr	�rTr%F)rr&r'�int)�versionr(r)�split�
split_compares     r�compare_pygobject_versionr49sx��
6�I��G�5�5�6�K����s�A�&�E��N�N�3��*�M�
�=����s�5��8�}�,��
�=����s�5��8�}�,��r�)�urlparsec��X4$rr)�a�bs  r�unicoder:^s	���v�
rc�j�[S:�a[RR$[R$�Nr5)�PYVER�http�client�	responses�httplibrrrr@r@ds%����z��{�{�$�$�$�� � � rc�0�[S:�aU$[X5$r<)r=r:��param�charsets  r�
unicodestrrFks����z����u�&�&rc�N�[S:�aU$[U5RU5$r<)r=r:�encoderCs  r�
unicodeencoderIrs#����z����u�~�$�$�W�-�-rc�<�[S:�aU$URU5$r<)r=�decoderCs  r�
unicodedecoderLys����z����|�|�G�$�$rc�j�[S:�a[RRU5$[	U5$r<)r=�urllib�parser6�rb2urlparse��uris rr6r6�s)����z��|�|�$�$�S�)�)��3��rc��[S:�a[RRU5$[R"U5$r<)r=rN�request�url2pathname)�urls rrUrU�s/����z��~�~�*�*�3�/�/��"�"�3�'�'rc��[S:�a[RRU5$[R"U5$r<)r=rNrT�urlopen��filenames rrXrX�s-����z��~�~�%�%�h�/�/��~�~�h�'�'rc��[S:�a[RRU5$[R"U5$r<)r=rNrT�pathname2urlrYs rr\r\�s/����z��~�~�*�*�8�4�4��"�"�8�,�,rc��[S:�a[RRU5$[R"U5$r<)r=rNrO�unquoterQs rr^r^�s-����z��|�|�#�#�C�(�(��~�~�c�"�"rc��[S:�aCU(a[RRXS9$[RRU5$U(a[R"XS9$[R"U5$)Nr5)�safe)r=rNrO�quote)rRr`s  rrara�sZ����z���<�<�%�%�c�%�5�5��<�<�%�%�c�*�*���<�<��/�/��<�<��$�$rc��[S:�a[RRU5$[R"U5$r<)r=rNrO�
quote_plusrQs rrcrc�s/����z��|�|�&�&�s�+�+�� � ��%�%rc�X�[[RRS5(agg)N�
ui_managerFT)�hasattrr�Shell�props)�argss r�is_rb3rj�s���r�x�x�~�~�|�,�,��rc�^�\rSrSrSrS\RSS40rU4SjrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrU=r$)�Menu�z/
Menu object used to create window popup menus
�	pre-popupNrc�l>�[[U]5 XlX lSUl0Ul0Ulg)z
Initializes the menu.
rN)�superrl�__init__�plugin�shell�_unique_num�
_rbmenu_items�_rbmenu_objects)�selfrrrs�	__class__s   �rrq�
Menu.__init__�s4���	�d�D�"�$����
�������!��rc�(�URXSU5$)z�
add a new menu item to the popup
:param menubar: `str` is the name GtkMenu (or ignored for RB2.99+)
:param section_name: `str` is the name of the section to add the item
to (RB2.99+)
:param action: `Action`  to associate with the menu item
���)�insert_menu_item)rw�menubar�section_name�actions    r�
add_menu_item�Menu.add_menu_item�s���$�$�W�B��G�Grc��URn[UR5(a�URRRn[
R"5nURU5 URU5 X R;a/URU'URURU5 URX%U5 U$[R"US9nURU5 XpRU'URU5nUS:XaURU5 OURXs5 UR5 URRR n	U	R#5 U$)a9
add a new menu item to the popup
:param menubar: `str` is the name GtkMenu (or ignored for RB2.99+)
:param section_name: `str` is the name of the section to add the item
to (RB2.99+)
:param position: `int` position to add to GtkMenu (ignored for RB2.99+)
:param action: `Action`  to associate with the menu item
)�labelr{)r�rjrsrh�applicationr�MenuItem�associate_menuitem�	set_labelru�append�add_plugin_menu_itemr�get_menu_object�insert�show_allre�
ensure_update)
rwr}r~�positionrr��app�item�bar�uims
          rr|�Menu.insert_menu_item�s,�������$�*�*����*�*�"�"�.�.�C��<�<�>�D��%�%�d�+��N�N�5�!��#5�#5�5�35��"�"�<�0����|�,�3�3�E�:��$�$�\�$�?����<�<�e�,�D��%�%�d�+�(,���u�%��&�&�w�/�C��2�~��
�
�4� ��
�
�4�*��L�L�N��*�*�"�"�-�-�C������rc���[UR5(d�[R"5R	5nURS5 X0RS[UR5-'URS-UlURU5nURX25 UR5 URRRnUR5 gg)z�
add a separator to the popup (only required for RB2.98 and earlier)
:param menubar: `str` is the name GtkMenu (or ignored for RB2.99+)
:param position: `int` position to add to GtkMenu (ignored for RB2.99+)
T�	separatorr%N)rjrsr�SeparatorMenuItem�new�set_visiblerurrtr�r�r�rhrer�)rwr}�at_position�	menu_itemr�r�s      r�insert_separator�Menu.insert_separators����d�j�j�!�!��-�-�/�3�3�5�I��!�!�$�'�FO���{�S��1A�1A�-B�B�C�#�/�/�!�3�D���&�&�w�/�C��J�J�y�.��L�L�N��*�*�"�"�-�-�C�����"rc�^�[UR5(aX R;agURRRnURUHnURX$5 M URU(aURUSS2	ggUR(dgURRRnURU5nURH!nURURU5 M# UR5 UR5 g)a
utility function to remove all menuitems associated with the menu
section
:param menubar: `str` is the name of the GtkMenu containing the menu
items (ignored for RB2.99+)
:param section_name: `str` is the name of the section containing the
menu items (for RB2.99+ only)
N)rjrsrurhr��remove_plugin_menu_itemrer��remover�r�)rwr}r~r�r�r�r�s       r�remove_menu_items�Menu.remove_menu_itemss����$�*�*����#5�#5�5���*�*�"�"�.�.�C�!�/�/��=�	��+�+�L�D�>��!�!�,�/��&�&�|�4�Q�7�0�
�%�%���*�*�"�"�-�-�C��&�&�w�/�C�!�/�/�	��
�
�4�-�-�i�8�9�0�
�L�L�N����rc�~�[R"5UlSSKJn U"5nURRURR5 [UR5(aUnOUnXPl
URR[R"URU55 g! Nd=f)z�
utility function to load the menu structure
:param rb2_ui_filename: `str` RB2.98 and below UI file
:param rb3_ui_filename: `str` RB2.99 and higher UI file
r)�CoverLocaleN)r�Builder�builder�coverart_browser_prefsr��set_translation_domain�Locale�
LOCALE_DOMAINrjrs�ui_filename�
add_from_file�rb�find_plugin_filerr)rw�rb2_ui_filename�rb3_ui_filenamer��clr�s      r�load_from_file�Menu.load_from_file6s����{�{�}���	�:���B��L�L�/�/��	�	�0G�0G�H��$�*�*���)�K�)�K�&�����"�"�2�#6�#6�t�{�{�7B�$D�	E��	��s�<B8�8B<c�T^�U4SjnUR5H
up4U"X45 M g)Nc��>�[R"US9nURSU5 URS5 TRR
RRU5 g)N)�name�activateT)r�SimpleAction�connect�set_enabledrsrh�window�
add_action)�action_name�funcrrws   �r�
_menu_connect�0Menu._connect_rb3_signals.<locals>._menu_connectQsM����%�%�;�7�F��N�N�:�t�,����t�$��J�J���#�#�.�.�v�6r��items�rw�signalsr��key�values`    r�_connect_rb3_signals�Menu._connect_rb3_signalsPs$���	7�"�-�-�/�J�C��#�%�*rc�T^�U4SjnUR5H
up4U"X45 M g)Nc�L>�TRU5nURSU5 g�Nr�)r�r�)�menu_item_namer�r�rws   �rr��0Menu._connect_rb2_signals.<locals>._menu_connect[s#����,�,�^�<�I����j�$�/rr�r�s`    r�_connect_rb2_signals�Menu._connect_rb2_signalsZs$���	0�"�-�-�/�J�C��#�%�*rc�~�[UR5(aURU5 gURU5 g)z�
connect all signal handlers with their menuitem counterparts
:param signals: `dict` key is the name of the menuitem
     and value is the function callback when the menu is activated
N)rjrsr�r�)rwr�s  r�connect_signals�Menu.connect_signalsbs/���$�*�*����%�%�g�.��%�%�g�.rc��X R;aURU$URRU5n[UR5(acURR
RnURU5 [RRU5nURUS5 OUnXPRU'U$)zz
utility function to obtain the GtkMenu from the menu UI file
:param popup_name: `str` is the name menu-id in the UI file
N)rvr��
get_objectrjrsrhr��link_shared_menusrrl�new_from_model�attach_to_widget)rw�source�
popup_namer�r��
popup_menus      r�get_gtkmenu�Menu.get_gtkmenums���
�-�-�-��'�'�
�3�3��|�|�&�&�z�2���$�*�*����*�*�"�"�.�.�C��!�!�$�'����0�0��6�J��'�'���5��J�+5���Z�(��rc�Z�XR;aURU$URRU5n[UR5(a<U(aUnO4URR
RnURU5nOUn[U5 X0RU'U$)zt
utility function returns the GtkMenuItem/Gio.MenuItem
:param menu_name_or_link: `str` to search for in the UI file
)	rvr�r�rjrsrhr��get_plugin_menu�print)rw�menu_name_or_linkr�r�r�s     rr��Menu.get_menu_object�s���
� 4� 4�4��'�'�(9�:�:��|�|�&�&�'8�9���$�*�*����!�
��j�j�&�&�2�2�� �0�0�1B�C�
��J�
�� �2<���.�/��rc��[UR5(aAURRRR	U5nURU5 gUR
U5nURU5 g)z�
utility function to enable/disable a menu-item
:param menu_or_action_item: `GtkMenuItem` or `Gio.SimpleAction`
   that is to be enabled/disabled
:param enable: `bool` value to enable/disable
N)rjrsrhr��
lookup_actionr�r��
set_sensitive)rw�menu_or_action_item�enabler�s    rr��Menu.set_sensitive�sa���$�*�*����:�:�#�#�*�*�8�8�9L�M�D����V�$��'�'�(;�<�D����v�&rc�r�URS5 URX5nURSSSSX45 g)z)
utility function to show the popup menu
rnN)�emitr��popup)rwr��	menu_name�button�time�menus      rr��
Menu.popup�s4��	
�	�	�+������2���
�
�4��t�T�6�8r)rurvrtr�rrrsr�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�SIGNAL_RUN_LAST�__gsignals__rqr�r|r�r�r�r�r�r�r�r�r�r��__static_attributes__�
__classcell__)rxs@rrlrl�sm����	�g�-�-�t�R�8��L�
"�H�$�L �"! �FE�4&�&�	/��*�*
'�9�9rrlc�N�\rSrSrSrSrSrSr\S5r	Sr
SrS	rS
r
Srg)
�ActionGroupi�z=
container for all Actions used to associate with menu items
rr%c�@�X lXl0Ul[UR5(a[R
"5Ulg[R"U5UlURRRnURUR5 g)zc
constructor
:param shell: `RBShell`
:param group_name: `str` unique name for the object to create
N)�
group_namers�_actionsrjr�SimpleActionGroup�actiongrouprr�rhre�insert_action_group)rwrsr�r�s    rrq�ActionGroup.__init__�so��%���
���
��$�*�*���"�4�4�6�D��"���z�:�D���*�*�"�"�-�-�C��#�#�D�$4�$4�5rc��UR$r)r��rws rr��ActionGroup.name�s�����rc�|�URR5HnURRU5 M  g)zH
utility function to remove all actions associated with the ActionGroup
N)r��list_actions�
remove_action)rwrs  r�remove_actions�ActionGroup.remove_actions�s1���&�&�3�3�5�F����*�*�6�2�6rc� �URU$)zq
utility function to obtain the Action from the ActionGroup

:param action_name: `str` is the Action unique name
)r�)rwr�s  r�
get_action�ActionGroup.get_action�s���}�}�[�)�)rc�0�X4S'UR"X40UD6$)aV
Creates an Action with an accelerator and adds it to the ActionGroup

:param func: function callback used when user activates the action
:param action_name: `str` unique name to associate with an action
:param accel: `str` accelerator
:param args: dict of arguments - this is passed to the function
callback

Notes:
see notes for add_action
�accel)r�)rwr�r�r
ris     r�add_action_with_accel�!ActionGroup.add_action_with_accel�s���W�
����t�9�D�9�9rc��SU;aUSnOUnSU;aUSnOSn[RnSU;aUSn[UR5(GaU[R:Xa7[
RRUS[R"SS55nO [
RRUS5nSnSU;aUSS	:XaS	n[
RR5n	US	:XaU	RU5 OJURRRRU5 UR RU5 U(aU	R#US
-U-U/5 O�SU;aUSn
O[$R&n
U[R:Xa[$R("UUSU
S
9nO[$R*"UUSU
S
9nU(aUR R-Xu5 OUR RU5 [+URU5nUR/SX5 XKlX[lX�R4U'U$)a
Creates an Action and adds it to the ActionGroup

:param func: function callback used when user activates the action
:param action_name: `str` unique name to associate with an action
:param args: dict of arguments - this is passed to the function
callback

Notes:
key value of "label" is the visual menu label to display
key value of "action_type" is the RB2.99 Gio.Action type
("win" or "app") by default it assumes all actions are "win" type
key value of "action_state" determines what action state to create
r�r
N�action_stater9F�win�action_typer�r	�stock_id�)r�r��tooltiprr�)r��STANDARDrjrs�TOGGLErr��new_statefulr�Variantr��Application�get_defaultr�rhr�r��set_accels_for_actionr�STOCK_CLEAR�ToggleAction�Actionrr�r�r
r�)rwr�r�rir�r
�staterrr�r�acts            rr��ActionGroup.add_action�s���d�?���M�E��E��d�?���M�E��E��$�$���T�!���(�E��$�*�*�����*�*�*��)�)�6�6�{�D�7;�|�|�C�DI�8K�L���)�)�-�-�k�4�@���K���$��
�&�%�/�"'�K��/�/�-�-�/�C��e�#����v�&��
�
� � �'�'�2�2�6�:�� � �+�+�F�3���)�)�+��*;�k�*I�+0�'�3���T�!��
�+���?�?����*�*�*��)�)��/:�24�x�I�����%�)4�,.��C���� � �6�6�v�E�� � �+�+�F�3��T�Z�Z��(�����J��+��	��	�%(�
�
�k�"��
r)r�r�r�rsN)r�r�r�r�r�rrrq�propertyr�rr
rr�r�rrrr�r��sA���
�H�
�F�6�$����3�*�:� Qrr�c�B�\rSrSrSrSr"SS5rSrSrSr	S	r
g)
�ApplicationShelliAzH
Unique class that mirrors RB.Application & RB.Shell menu functionality
Nc�F�\rSrSrSrSrSrSSjrSSjrSr	Sr
S	rg
)
�ApplicationShell.__impliHz*Implementation of the singleton interface c�p�Xl[UR5(a0UlO/Ul0Ulgr)rsrj�_uids�_action_groups�rwrss  rrq� ApplicationShell.__impl.__init__Ks,���J��d�j�j�!�!���
���
�"$�D�rc�4�XRUR'g)zX
Adds an ActionGroup to the ApplicationShell

:param action_group: `ActionGroup` to add
N)r+r�)rw�action_groups  rr��+ApplicationShell.__impl.insert_action_groupUs��6B���� 1� 1�2rc��[UR5(afUS:Xa0URRRR	U5nO�URRR
R	U5nOkURRRnUR5nSnUHnUR5U:XdM O SnU(aURU5nU(a[URU5$g)aD
looks up (finds) an action created by another plugin.
If found returns an Action or None if no matching Action.

:param action_group_name: `str` is the Gtk.ActionGroup name
(ignored for RB2.99+)
:param action_name: `str` unique name for the action to look for
:param action_type: `str` RB2.99+ action type ("win" or "app")
r�N)rjrsrhr�r�r�re�get_action_groups�get_namer
r )rw�action_group_namer�rrr��ui_actiongroupsr�s        rr��%ApplicationShell.__impl.lookup_action]s����d�j�j�!�!��%�'��
�
�(�(�4�4�B�B�;�O��"�Z�Z�-�-�4�4�B�B�;�O�F��j�j�&�&�1�1��"%�"7�"7�"9��"��#2�K�"�+�+�-�1B�B��$3����(�3�3�K�@�F���d�j�j�&�1�1�rc��[UR5(Ga[R"U5nUR	S5H�nUR
SnURUnURU5n[R"5n	U	RSU-5 U	RUR5 U	RS[R"SUR 55 [R"R%5n
X6-nU
R'UX�5 X0R(U'M� gURR*R,nUR(R/UR1U55 UR35 g)aa
utility function to add application menu items.

For RB2.99 all application menu items are added to the "tools"
section of the application menu. All Actions are assumed to be of
action_type "app".

For RB2.98 or less, it is added however the UI_MANAGER string
is defined.

:param ui_string: `str` is the Gtk UI definition.  There is not an
equivalent UI definition in RB2.99 but we can parse out menu items
since this string is in XML format

:param group_name: `str` unique name of the ActionGroup to add menu
items to
:param menu: `str` RB2.99 menu section to add to - nominally either
  'tools' or 'view'
�.//menuitemrzapp.r
�sN)rjrs�ET�
fromstring�findall�attribr+r
rr��set_detailed_actionr�r��set_attribute_valuerrr
rrr�r*rhrer��add_ui_from_stringr�)
rw�	ui_stringr�r��root�elemr��groupr"r�r��indexr�s
             r�add_app_menuitems�)ApplicationShell.__impl.add_app_menuitems�s/��(�d�j�j�!�!��}�}�Y�/�� �L�L��7�D�"&�+�+�h�"7�K� �/�/�
�;�E��*�*�;�7�C��<�<�>�D��,�,�V�k�-A�B��N�N�3�9�9�-��,�,�W�d�l�l�3�CF�9�9�7N�O��/�/�5�5�7�C� �.�E��,�,�T�-2�:�(,�J�J�u�%�8�"�j�j�&�&�1�1���
�
�!�!�#�"8�"8��"C�D��!�!�#rc�^�[UR5(Ga8[R"U5nUR	S5GHnUR
SnUR
S5nUR
SnURUnURU5n	[R"5n
U
RSU-5 U
RU	R5 [RR5nUS:XaSnO)US:XaS	nO US
:XaSnOUS:XaS
nO[!SW-5 X�-n
UR#X�U
5 X�R$U
'GM gURR&R(nUR$R+UR-U55 UR/5 g)a�
utility function to add popup menu items to existing browser popups

For RB2.99 all menu items are are assumed to be of action_type
"win".

For RB2.98 or less, it is added however the UI_MANAGER string
is defined.

:param ui_string: `str` is the Gtk UI definition.  There is not an
equivalent UI definition in RB2.99 but we can parse out menu items
since this string is in XML format

:param group_name: `str` unique name of the ActionGroup to add menu
items to
z./popupr�r8r�win.�QueuePlaylistViewPopupzqueue-popup�BrowserSourceViewPopupz
browser-popup�PlaylistViewPopupzplaylist-popup�PodcastViewPopupzpodcast-episode-popupzunknown type %sN)rjrsr:r;r<r=�findr+r
rr�r>r�r�rrr�r�r*rhrer�r@r�)rwrAr�rBrCr��menuelemr�rDr"r�r��plugin_typerEr�s               r�add_browser_menuitems�-ApplicationShell.__impl.add_browser_menuitems�sh��"�d�j�j�!�!��}�}�Y�/�� �L�L��3�D�!%���V�!4�J�#�y�y��7�H�"*�/�/�(�";�K� �/�/�
�;�E��*�*�;�7�C��<�<�>�D��,�,�V�k�-A�B��N�N�3�9�9�-��/�/�5�5�7�C�!�%=�=�&3��#�'?�?�&5��#�':�:�&6��#�'9�9�&=���/�+�=�>�'�5�E��,�,�[��F�(3�J�J�u�%�74�:�j�j�&�&�1�1���
�
�!�!�#�"8�"8��"C�D��!�!�#rc�~�[UR5(aOURH>n[RR5R
URUU5 M@ gURRRnURHnURU5 M UR5 g)z'
utility remove any menuitems created.
N)rjrsr*rrrr�rhre�	remove_uir�)rw�uidr�s   r�cleanup�ApplicationShell.__impl.cleanup�s����d�j�j�!�!��:�:�C��O�O�/�/�1�I�I��
�
�3���.�&��j�j�&�&�1�1���:�:�C��M�M�#�&�&��!�!�#r)r+r*rsN)r�)�tools)r�r�r�r�r�rqr�r�rFrQrVr�rrr�__implr(Hs,��9�	%�	B�',�"	�H)	$�V2	$�h	$rrYc��[Rc[RU5[l[RURS'g)zCreate singleton instance N�_ApplicationShell__instance)r&r[�_ApplicationShell__impl�__dict__r,s  rrq�ApplicationShell.__init__�s>���&�&�.�*:�*A�*A�%�*H��'�
�'�'�	
�
�
�3�4rc�.�[URU5$�z"Delegate access to implementation )�getattrr[)rw�attrs  r�__getattr__�ApplicationShell.__getattr__�s���t����-�-rc�.�[URX5$r`)�setattrr[)rwrbr�s   r�__setattr__�ApplicationShell.__setattr__�s���t����4�4rr)r�r�r�r�r�r[r\rqrcrgr�rrrr&r&As*����J�d$�d$�L	(�.�5rr&c��\rSrSrSrSrSrSr\S5r	\	RS5r	\S5r\RS	5rS
rSr
SrS
rSrSrSrg)r iz=
class that wraps around either a Gio.Action or a Gtk.Action
c�T�XlX lSUlSUlSUlSUlg)zS
constructor.

:param shell: `RBShell`
:param action: `Gio.Action` or `Gtk.Action`
rFTN)rsr�_label�_accel�_current_state�_do_update_state)rwrsrs   rrq�Action.__init__s,���
���������#��� $��rc���X lX0lUS:XaURn[UR5(aUR
R
XU5 gUR
R
XSU5 gr�)�
_connect_func�
_connect_args�	_activaterjrsrr�)rw�addressr�ris    rr��Action.connectsX��!��!���j� ��>�>�D��$�*�*����K�K����t�4��K�K����t�T�:rc���UR(a1UR(+UlURUR5 URUSUR5 gr)rnrm�	set_staterqrr)rwrris   rrs�Action._activate"sF��� � �&*�&9�&9�"9�D���N�N�4�.�.�/����6�4��);�);�<rc��[UR5(dURR5$UR$)zv
get the menu label associated with the Action

for RB2.99+ actions dont have menu labels so this is managed
manually
)rjrsr�	get_labelrkrs rr��Action.label)s0���d�j�j�!�!��;�;�(�(�*�*��;�;�rc�z�[UR5(dURRU5 Xlgr)rjrsrr�rk)rw�	new_labels  rr�r{6s(���d�j�j�!�!��K�K�!�!�)�,��rc��UR$)z0
get the accelerator associated with the Action
�rlrs rr
�Action.accel=s��
�{�{�rc�.�U(aXlgSUlg)Nrr)rw�new_accelerators  rr
r�Ds���)�K��D�Krc��[UR5(aURR5$URR	5$)zM
get the sensitivity (enabled/disabled) state of the Action

returns boolean
)rjrsr�get_enabled�
get_sensitivers rr��Action.get_sensitiveKs9���$�*�*����;�;�*�*�,�,��;�;�,�,�.�.rc���[UR5(aWURRR(a1URR[R"SU55 ggg)zI
set the state of a stateful action - this is applicable only
to RB2.99+
r9N)rjrsrrh�
state_type�change_staterr�rwr�s  rrw�Action.set_stateVsJ��
�$�*�*���$�+�+�"3�"3�">�">��K�K�$�$�T�\�\�#�u�%=�>�#?�rc��[UR5(aURRS5 gURR5 g)z,
invokes the activate signal for the action
N)rjrsrr�rs rr��Action.activate^s5���$�*�*����K�K� � ��&��K�K� � �"rc��[UR5(aUURR[R
"SU55 XlSUlUR5 SUlgURRU5 g)z�
activate or deactivate a stateful action signal
For consistency with earlier RB versions, this will fire the
activate signal for the action

:param value: `boolean` state value
r9FTN)
rjrsrr�rrrmrnr��
set_activer�s  rr��Action.set_activegsa���$�*�*����K�K�$�$�T�\�\�#�u�%=�>�"'��$)�D�!��M�M�O�$(�D�!��K�K�"�"�5�)rc��[UR5(aURnU$URR	5nU$)z<
get the state of the action

returns `boolean` state value
)rjrsrmr�
get_active)rw�	returnvals  rr��Action.get_activeys@���$�*�*����+�+�I������.�.�0�I��rc���[UR5(a-URSURR	5-5 gURUR5 g)z
links a menu with the action

rIN)rjrsr>rr3�set_related_action)rw�menuitems  rr��Action.associate_menuitem�sE��
�$�*�*����(�(��$�+�+�2F�2F�2H�)H�I��'�'����4r)rlrrrqrmrnrkrrsN)r�r�r�r�r�rqr�rsr$r��setterr
r�rwr�r�r�r�r�rrrr r s����
%�
;�=��
��
��\�\� �� ������\�\����	/�?�#�*�$�5rr r),�sys�xml.etree.ElementTree�etree�ElementTreer:r��
gi.repositoryrrrrrrr&r4�version_infor=�urllib.requestrN�urllib.parse�urllib.errorr6rP�http.clientr>r:rAr@rFrIrLrUrXr\r^rarcrj�Objectrl�objectr�r&r rrr�<module>r�s���0�"�"�	��!����/�	0��*	�������A�:�����0��A�:��
��!�'�.�%� �(�(�-�#�
%�&��n9�7�>�>�n9�bO�&�O�d~5�v�~5�BL5�V�L5r

Filemanager

Name Type Size Permission Actions
alternative-toolbar.cpython-313.pyc File 25.26 KB 0644
alttoolbar_controller.cpython-313.pyc File 29.02 KB 0644
alttoolbar_plugins.cpython-313.pyc File 24.7 KB 0644
alttoolbar_preferences.cpython-313.pyc File 15.9 KB 0644
alttoolbar_rb3compat.cpython-313.pyc File 36.76 KB 0644
alttoolbar_repeat.cpython-313.pyc File 18.25 KB 0644
alttoolbar_sidebar.cpython-313.pyc File 26.88 KB 0644
alttoolbar_type.cpython-313.pyc File 74.77 KB 0644
alttoolbar_widget.cpython-313.pyc File 3.39 KB 0644
Filemanager