[gtk+/wip/matthiasc/kill-event-signals: 18/58] inspector: Stop using ::delete-event signal
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 18/58] inspector: Stop using ::delete-event signal
- Date: Wed, 3 Jan 2018 03:03:27 +0000 (UTC)
commit 13dd2361b89373f139ecf713a2ef6e656abb2c22
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 31 13:03:31 2017 -0500
inspector: Stop using ::delete-event signal
We can just use GtkWindow::hide-on-close instead.
gtk/gtkwindow.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index cce06af..9ed729c 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -11011,8 +11011,7 @@ gtk_window_set_debugging (gboolean enable,
{
gtk_inspector_init ();
inspector_window = gtk_inspector_window_new ();
- g_signal_connect (inspector_window, "delete-event",
- G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+ gtk_window_set_hide_on_close (GTK_WINDOW (inspector_window), TRUE);
if (warn)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]