| 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 : |
o
1�b`? � @ s� d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ G dd � d ej �Z
G d
d� dej�ZG dd
� d
ej
�ZdS )� )�CoverLocale)�GSetting)�GLib)�GObject)�Gdk)�Gio)�Gtkc @ sR e Zd ZdZdZdZdd� Zdd� Zdd � Zd
d� Z ddd
�Z
dd� Zdd� ZdS )�Repeatzn
Object handling song repeating, with an additional feature of
repeating one song, one song only.
r � c C s� t j�| � d| _|| _| j| _|jj}|jj �
d| j� |�
d| j� z'zt
j�|�}W n
ty: t|�}Y nw |�d� W t||�}|�|� nt||�}|�|� w |�
d| j||� |�
d| j� | �||�� � dS )zy
:param shell: the plugin object
:param toggle_button: button that controls the repeat functions
F�eoszplaying-song-changed�toggled�repeat-type-changedN)r �Object�__init__�repeat_song�
toggle_button�SONG_CHANGED_MANUAL�song_changed�props�shell_player�player�connect�on_gst_player_eos�on_song_changer �Popover�new�AttributeError�
CustomPopover� set_modal�RepeatPopContainer�add�
_on_toggle�_on_repeat_type_changed�get_repeat_type)�self�shellr r �popover�repeat� r( �C/usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_repeat.pyr &