summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-02-09 21:29:41 +0100
committerBastien Nocera <hadess@hadess.net>2022-02-10 11:51:19 +0100
commit495279d182ec79fad46a89fd6e54aef5169c8d68 (patch)
tree049c3741fdb2698ec9dc5c6ec37393d59bed4e9b /data
parent9ba0379926e73fe00b3517e2274a4dd1d7913527 (diff)
downloadtotem-495279d182ec79fad46a89fd6e54aef5169c8d68.tar.gz
playlist: Use GtkBuilder template
And remove some UI niceties in the (hidden) debug window.
Diffstat (limited to 'data')
-rw-r--r--data/meson.build1
-rw-r--r--data/playlist.ui11
-rw-r--r--data/totem.gresource.xml1
3 files changed, 7 insertions, 6 deletions
diff --git a/data/meson.build b/data/meson.build
index 3462b90dd..ce9790ed2 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -37,7 +37,6 @@ else
endif
ui_files = files(
- 'playlist.ui',
'shortcuts.ui',
'totem.ui',
'uri.ui'
diff --git a/data/playlist.ui b/data/playlist.ui
index 5f12c3f44..d1f02a44a 100644
--- a/data/playlist.ui
+++ b/data/playlist.ui
@@ -25,17 +25,18 @@
<column type="gint64"/>
</columns>
</object>
- <object class="GtkVBox" id="vbox4">
+ <template class="TotemPlaylist" parent="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">0</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkScrolledWindow" id="scrolledwindow1">
+ <object class="GtkScrolledWindow" id="scrolled_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="shadow_type">in</property>
<child>
- <object class="GtkTreeView" id="treeview1">
+ <object class="GtkTreeView" id="treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">playlist_list_store</property>
@@ -53,7 +54,7 @@
</packing>
</child>
<child>
- <object class="GtkToolbar" id="toolbar1">
+ <object class="GtkToolbar" id="toolbar">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_size">1</property>
@@ -143,5 +144,5 @@
<property name="position">1</property>
</packing>
</child>
- </object>
+ </template>
</interface>
diff --git a/data/totem.gresource.xml b/data/totem.gresource.xml
index 53395d1fb..897ff8189 100644
--- a/data/totem.gresource.xml
+++ b/data/totem.gresource.xml
@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/org/gnome/totem/ui">
<file compressed="true">totem-preferences-dialog.ui</file>
+ <file compressed="true">playlist.ui</file>
</gresource>
</gresources>