fixed issue where when requesting playlist deletion mode, the trash button was hidden

This commit is contained in:
liyaowhen
2024-07-29 13:17:30 -07:00
parent b84c1a5844
commit 77ad4a8101
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -21,6 +21,7 @@ song_deps = [
dependency('json-glib-1.0'), dependency('json-glib-1.0'),
dependency('gstreamer-1.0'), dependency('gstreamer-1.0'),
dependency('gee-0.8'), dependency('gee-0.8'),
dependency('libpanel-1'),
] ]
song_sources += gnome.compile_resources('song-resources', song_sources += gnome.compile_resources('song-resources',
+1 -2
View File
@@ -1,7 +1,6 @@
namespace Song { namespace Song {
public class PlaylistButton : Gtk.Box { public class PlaylistButton : Gtk.Box {
private Settings settings = new Settings ("com.liyaowhen.Song");
public PlaylistObject playlist; public PlaylistObject playlist;
private Gtk.Button remove_button; private Gtk.Button remove_button;
@@ -14,7 +13,6 @@ namespace Song {
construct { construct {
orientation = Gtk.Orientation.HORIZONTAL; orientation = Gtk.Orientation.HORIZONTAL;
add_css_class("toolbar"); add_css_class("toolbar");
remove_button = new Gtk.Button.from_icon_name("app-remove-symbolic"); remove_button = new Gtk.Button.from_icon_name("app-remove-symbolic");
@@ -34,6 +32,7 @@ namespace Song {
main_button.hexpand = true; main_button.hexpand = true;
append(main_button); append(main_button);
append(remove_button_revealer); append(remove_button_revealer);
main_button.can_shrink = true;
hexpand = true; hexpand = true;
+1
View File
@@ -19,6 +19,7 @@ namespace Song {
var toolbar_view = new Adw.ToolbarView(); var toolbar_view = new Adw.ToolbarView();
var scroll_box = new Gtk.ScrolledWindow(); var scroll_box = new Gtk.ScrolledWindow();
scroll_box.hscrollbar_policy = Gtk.PolicyType.NEVER;
side_bar_content = new SideBarContent (); side_bar_content = new SideBarContent ();
side_bar_content.set_vexpand (true); side_bar_content.set_vexpand (true);
side_bar_content.set_hexpand (true); side_bar_content.set_hexpand (true);