Apply patch by Alexander Mikhaylenko: Improve isolated/expanded styling + DND

parent a9d93001
Pipeline #185445 passed with stage
in 9 minutes and 8 seconds
......@@ -26,6 +26,8 @@ class Fragments.TorrentListBox : ListBox {
Allocation alloc;
row.get_allocation (out alloc);
row.collapse ();
TorrentListBox parent = row.get_parent () as TorrentListBox;
Cairo.Surface surface = new Cairo.ImageSurface (Cairo.Format.ARGB32, alloc.width, alloc.height);
......
......@@ -99,13 +99,13 @@ public class Fragments.TorrentRow : Hdy.PreferencesRow {
}
public void toggle_revealer () {
if (revealer.get_reveal_child()) {
revealer.set_reveal_child(false);
this.isolated = false;
}else{
revealer.set_reveal_child(true);
this.isolated = true;
}
revealer.reveal_child = !revealer.reveal_child;
isolated = revealer.reveal_child;
}
public void collapse () {
revealer.reveal_child = false;
isolated = false;
}
private void remove_torrent(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment