[gnome-clocks/wip/exalm/libhandy-1: 18/20] window: Make non-deletable on the ringing alarm panel



commit eb491d9cbb3a0ffc7c3231209bcdb75bba5bbbdb
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue May 26 22:56:26 2020 +0500

    window: Make non-deletable on the ringing alarm panel

 src/window.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/window.vala b/src/window.vala
index d3fab36..bd472c6 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -371,6 +371,8 @@ public class Window : Hdy.ApplicationWindow {
         } else {
             title = _("Clocks");
         }
+
+        deletable = (alarm_deck.visible_child != alarm_ringing_panel);
     }
 
     [GtkCallback]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]