[nautilus/wip/antoniof/switch-to-gtk4: 37/40] window: GtkWidget.delete_event() -> GtkWindow.close_request()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/switch-to-gtk4: 37/40] window: GtkWidget.delete_event() -> GtkWindow.close_request()
- Date: Sun, 9 Jan 2022 00:43:49 +0000 (UTC)
commit dcfd555a900350aa1099201b8c420cce8c056da7
Author: António Fernandes <antoniof gnome org>
Date: Fri Dec 31 17:54:32 2021 +0000
window: 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 2518e045c..9627455f8 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2502,10 +2502,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;
}
@@ -2673,6 +2672,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;
@@ -2680,9 +2680,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]