[gnome-software: 61/110] gs-shell: Use close-request instead of delete-event




commit 164a5c72ae0bf915c20c3f17fbc1c8f29892ee6f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Aug 25 08:46:26 2021 -0300

    gs-shell: Use close-request instead of delete-event

 src/gs-shell.c  | 2 +-
 src/gs-shell.ui | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index b0b319997..b20eca683 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -1005,7 +1005,7 @@ window_button_pressed_cb (GtkGestureClick *click_gesture,
 }
 
 static gboolean
-main_window_closed_cb (GtkWidget *dialog, GdkEvent *event, gpointer user_data)
+main_window_closed_cb (GtkWidget *dialog, gpointer user_data)
 {
        GsShell *shell = user_data;
 
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index 716bb0aeb..54e3e0e5b 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -22,7 +22,7 @@
     <property name="icon_name">org.gnome.Software</property>
     <signal name="map" handler="gs_shell_main_window_mapped_cb"/>
     <signal name="realize" handler="gs_shell_main_window_realized_cb"/>
-    <signal name="delete-event" handler="main_window_closed_cb"/>
+    <signal name="close-request" handler="main_window_closed_cb"/>
     <child>
       <object class="GtkEventControllerKey">
         <property name="propagation-phase">capture</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]