diff options
author | Krifa75 <yahiaoui.fakhri@gmail.com> | 2022-11-22 21:38:02 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-11-23 09:57:15 +0100 |
commit | b75e6c2a9e514746159db28412df2db3c939de01 (patch) | |
tree | 83d8e3cb14c5e38513da56390034d35154f19480 /data | |
parent | 3734c65ba965de25b5a7b31e685d9ea0ebbdc713 (diff) | |
download | totem-b75e6c2a9e514746159db28412df2db3c939de01.tar.gz |
preferences: Move the plugins settings
Libpeas-gtk will not be ported to Gtk4, so let's remove the dependency
and build the list of plugins ourselves.
Closes: #548
Diffstat (limited to 'data')
-rw-r--r-- | data/totem-preferences-dialog.ui | 47 | ||||
-rw-r--r-- | data/totem-preferences-plugin-row.ui | 135 | ||||
-rw-r--r-- | data/totem.gresource.xml | 1 |
3 files changed, 159 insertions, 24 deletions
diff --git a/data/totem-preferences-dialog.ui b/data/totem-preferences-dialog.ui index 775093478..bb831efcf 100644 --- a/data/totem-preferences-dialog.ui +++ b/data/totem-preferences-dialog.ui @@ -155,30 +155,6 @@ </object> </child> - <child> - <object class="HdyPreferencesGroup"> - <property name="visible">True</property> - <property name="title" translatable="yes">Plugins</property> - - <child> - <object class="HdyActionRow" id="tpw_plugins_button"> - <property name="visible">True</property> - <property name="title" translatable="yes">Plugins</property> - <property name="activatable">True</property> - - <child> - <object class="GtkImage"> - <property name="icon-name">go-next-symbolic</property> - <property name="visible">True</property> - </object> - </child> - - </object> - </child> - - </object> - </child> - </object> </child> @@ -501,6 +477,29 @@ Disable it if you encounter video playback problems.</property> </object> </child> + + <child> + <object class="HdyPreferencesPage"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="title" translatable="yes">Plugins</property> + + <child> + <object class="HdyPreferencesGroup"> + <property name="visible">True</property> + + <child> + <object class="GtkListBox" id="tpw_plugins_list"> + <property name="visible">True</property> + </object> + </child> + + </object> + </child> + + </object> + </child> + </template> <object class="GtkSizeGroup"> <property name="mode">horizontal</property> diff --git a/data/totem-preferences-plugin-row.ui b/data/totem-preferences-plugin-row.ui new file mode 100644 index 000000000..0acbb095e --- /dev/null +++ b/data/totem-preferences-plugin-row.ui @@ -0,0 +1,135 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="TotemPreferencesPluginRow" parent="HdyExpanderRow"> + <property name="visible">True</property> + <child type="action"> + <object class="GtkSwitch" id="plugin_switch"> + <property name="visible">True</property> + <property name="valign">center</property> + <signal name="notify::active" handler="totem_preferences_plugin_row_activate_plugin_cb"/> + </object> + </child> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="row-spacing">6</property> + <property name="column-spacing">12</property> + <property name="margin-bottom">12</property> + <property name="margin-start">6</property> + <property name="margin-end">6</property> + <property name="margin-top">12</property> + <child> + <object class="GtkLabel" id="copyright"> + <property name="visible">True</property> + <property name="hexpand">True</property> + <property name="selectable">true</property> + <property name="margin-bottom">6</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">0</property> + <property name="width">2</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Authors</property> + <property name="margin-start">12</property> + <property name="xalign">1</property> + <property name="visible" bind-source="authors" bind-property="visible" bind-flags="default"/> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="authors"> + <property name="visible">True</property> + <property name="hexpand">True</property> + <property name="selectable">true</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Version</property> + <property name="margin-start">12</property> + <property name="xalign">1</property> + <property name="visible" bind-source="version" bind-property="visible" bind-flags="default"/> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">2</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="version"> + <property name="visible">True</property> + <property name="hexpand">True</property> + <property name="selectable">true</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">2</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Website</property> + <property name="margin-start">12</property> + <property name="xalign">1</property> + <property name="visible" bind-source="website" bind-property="visible" bind-flags="default"/> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">3</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLinkButton" id="website"> + <property name="visible">True</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" bind-source="website" bind-property="uri" bind-flags="default"/> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">3</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + </child> + </template> +</interface>
\ No newline at end of file diff --git a/data/totem.gresource.xml b/data/totem.gresource.xml index aeb11ac02..6341197ec 100644 --- a/data/totem.gresource.xml +++ b/data/totem.gresource.xml @@ -2,6 +2,7 @@ <gresources> <gresource prefix="/org/gnome/totem/ui"> <file compressed="true">totem-preferences-dialog.ui</file> + <file compressed="true">totem-preferences-plugin-row.ui</file> <file compressed="true">playlist.ui</file> <file compressed="true">uri.ui</file> <file compressed="true">shortcuts.ui</file> |