[nautilus/wip/antoniof/experimental-gtk4-build: 41/52] GtkWidget.delete_event() -> GtkWindow.close_request()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/experimental-gtk4-build: 41/52] GtkWidget.delete_event() -> GtkWindow.close_request()
- Date: Fri, 31 Dec 2021 23:58:46 +0000 (UTC)
commit 67ed673d445b11e03388afc27a77875ef999fe87
Author: António Fernandes <antoniof gnome org>
Date: Fri Dec 31 17:54:32 2021 +0000
GtkWidget.delete_event() -> GtkWindow.close_request()
src/nautilus-window.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 4e2b67d60..3ce7ebb06 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2499,10 +2499,9 @@ on_is_maximized_changed (GObject *object,
}
static gboolean
-nautilus_window_delete_event (GtkWidget *widget,
- GdkEventAny *event)
+nautilus_window_close_request (GtkWindow *window)
{
- nautilus_window_close (NAUTILUS_WINDOW (widget));
+ nautilus_window_close (NAUTILUS_WINDOW (window));
return FALSE;
}
@@ -2678,6 +2677,7 @@ nautilus_window_class_init (NautilusWindowClass *class)
{
GObjectClass *oclass = G_OBJECT_CLASS (class);
GtkWidgetClass *wclass = GTK_WIDGET_CLASS (class);
+ GtkWindowClass *winclass = GTK_WINDOW_CLASS (class);
oclass->dispose = nautilus_window_dispose;
oclass->finalize = nautilus_window_finalize;
@@ -2685,9 +2685,10 @@ nautilus_window_class_init (NautilusWindowClass *class)
wclass->show = nautilus_window_show;
wclass->realize = nautilus_window_realize;
- wclass->delete_event = nautilus_window_delete_event;
wclass->grab_focus = nautilus_window_grab_focus;
+ winclass->close_request = nautilus_window_close_request;
+
gtk_widget_class_set_template_from_resource (wclass,
"/org/gnome/nautilus/ui/nautilus-window.ui");
gtk_widget_class_bind_template_child (wclass, NautilusWindow, toolbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]