[gnome-clocks] Clear the window pointer upon destroy
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Clear the window pointer upon destroy
- Date: Sun, 31 Aug 2014 17:16:00 +0000 (UTC)
commit 2942065490bdc7faf81aba96ff897bb38fef9daa
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Aug 31 19:08:31 2014 +0200
Clear the window pointer upon destroy
This does not happen today, but it is more correct
src/application.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index f769c11..294737c 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -37,6 +37,9 @@ public class Application : Gtk.Application {
private void ensure_window () {
if (window == null) {
window = new Window (this);
+ window.destroy.connect (() => {
+ window = null;
+ });
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]