[gnome-clocks] window: Move hide-on-close to UI file
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] window: Move hide-on-close to UI file
- Date: Fri, 7 Jan 2022 17:23:45 +0000 (UTC)
commit 753349029fe2f902e8d2168a0e287c649600b703
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Tue Dec 14 14:21:35 2021 +0100
window: Move hide-on-close to UI file
data/ui/window.ui | 1 +
src/window.vala | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index 80d5b4a2..8cd9e797 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ClocksWindow" parent="AdwApplicationWindow">
+ <property name="hide-on-close">True</property>
<child>
<object class="GtkEventControllerKey">
<signal name="key-pressed" handler="key_press_cb"/>
diff --git a/src/window.vala b/src/window.vala
index a269bb8d..709edd9c 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -133,8 +133,6 @@ public class Window : Adw.ApplicationWindow {
if (Config.PROFILE == "Devel") {
add_css_class ("devel");
}
-
- this.hide_on_close = true;
}
[Signal (action = true)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]