[gnome-games/wip/exalm/gtk4: 18/34] application-window: Replace 'delete-event' signal with 'close-request'
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 18/34] application-window: Replace 'delete-event' signal with 'close-request'
- Date: Sat, 9 Feb 2019 12:17:17 +0000 (UTC)
commit 89f40872ec1a2891d1f38350530c8d12078de6f7
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 10:14:35 2018 +0500
application-window: Replace 'delete-event' signal with 'close-request'
data/ui/application-window.ui | 2 +-
src/ui/application-window.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/application-window.ui b/data/ui/application-window.ui
index ef01eb89..052cdb46 100644
--- a/data/ui/application-window.ui
+++ b/data/ui/application-window.ui
@@ -6,7 +6,7 @@
<property name="default-width">768</property>
<property name="default-height">600</property>
<property name="show-menubar">False</property>
- <signal name="delete-event" after="yes" handler="on_delete_event"/>
+ <signal name="close-request" after="yes" handler="on_close_request"/>
<signal name="window-state-event" after="yes" handler="on_window_state_event"/>
<signal name="notify::is-active" after="yes" handler="on_active_changed"/>
<child>
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 52a21ee6..ccddfaf9 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -214,7 +214,7 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
}
[GtkCallback]
- public bool on_delete_event () {
+ public bool on_close_request (Gtk.Window window) {
return !quit_game ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]