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



commit 71f68753c676245653a58d4a4c14bf62cdc4b04a
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]