mirror of
https://gitlab.com/liyaowhen/youtubecollector-git.git
synced 2026-10-01 01:12:59 +00:00
fixed issue where when requesting playlist deletion mode, the trash button was hidden
This commit is contained in:
@@ -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,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;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user