Skip to content

Instantly share code, notes, and snippets.

@JasonLG1979
Last active October 5, 2024 19:37
Show Gist options
  • Save JasonLG1979/ebd033a5e10889fa2dd0336bc474abf9 to your computer and use it in GitHub Desktop.
Save JasonLG1979/ebd033a5e10889fa2dd0336bc474abf9 to your computer and use it in GitHub Desktop.
UI File for Mate MPRIS Applet players
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.1
Copyright (C) 2017
This file is part of Mate MPRIS Panel Applet.
Mate MPRIS Panel Applet is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Mate MPRIS Panel Applet is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mate MPRIS Panel Applet. If not, see <http://www.gnu.org/licenses/>.
Author: Jason Gray <[email protected]>
-->
<interface>
<requires lib="gtk+" version="3.14"/>
<!-- interface-license-type gplv3 -->
<!-- interface-name Mate MPRIS Panel Applet -->
<!-- interface-description Mate Panel Applet for controlling media players via MPRIS -->
<!-- interface-copyright 2017 -->
<!-- interface-authors Jason Gray <[email protected]> -->
<template class="PlayerWidget" parent="GtkGrid">
<property name="width_request">256</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkBox" id="playcontrol_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkButton" id="prev_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">media-skip-backward-symbolic</property>
<property name="use_fallback">True</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="prev_button-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">previous button</property>
<property name="AtkObject::accessible-description" translatable="yes">skip to the previous track</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="playpause_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<child>
<object class="GtkImage" id="playpause_icon">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">media-playback-start-symbolic</property>
<property name="use_fallback">True</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="playpause_button-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">play pause button</property>
<property name="AtkObject::accessible-description" translatable="yes">toggle between playing and paused</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="next_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">media-skip-forward-symbolic</property>
<property name="use_fallback">True</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="next_button-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">next button</property>
<property name="AtkObject::accessible-description" translatable="yes">skip to the next track</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="playcontrol_box-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">playback controls</property>
<property name="AtkObject::accessible-description" translatable="yes">control playback. skip to the previous track, toggle between playing and paused, or skip to the next track</property>
</object>
</child>
<style>
<class name="linked"/>
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="raise_button">
<property name="width_request">64</property>
<property name="height_request">64</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<child>
<object class="GtkImage" id="cover_image">
<property name="width_request">48</property>
<property name="height_request">48</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="pixel_size">48</property>
<property name="icon_name">audio-x-generic-symbolic</property>
<property name="use_fallback">True</property>
<property name="icon_size">48</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="raise_button-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">raise button</property>
<property name="AtkObject::accessible-description" translatable="yes">raise the player's graphic user interface if applicable</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="track_info">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="use_markup">True</property>
<property name="ellipsize">end</property>
<child internal-child="accessible">
<object class="AtkObject" id="track_info-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">track information</property>
<property name="AtkObject::accessible-description" translatable="yes">the artist name, the track title, and the album title if available</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="PlayerWidget-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">player control widget</property>
<property name="AtkObject::accessible-description" translatable="yes">media player remote interfacing specification version two controls</property>
</object>
</child>
</template>
</interface>
@Nekothegamer
Copy link

where should this file be place in order to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment