From 9fe1b9036b8da39b32522d58fc79c8a586f2db93 Mon Sep 17 00:00:00 2001 From: Christopher Head Date: Sun, 26 Jan 2025 14:52:45 -0800 Subject: [PATCH] Clarify hide-on-close documentation `gtk_window_set_hide_on_close` already explained that destroying (rather than doing nothing) is the alternative to hiding. However, neither `gtk_window_get_hide_on_close` nor the `hide-on-close` property did so. --- gtk/gtkwindow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 0064a0a4e18..bc3fff7db87 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -864,7 +864,8 @@ gtk_window_class_init (GtkWindowClass *klass) /** * GtkWindow:hide-on-close: * - * If this window should be hidden when the users clicks the close button. + * If this window should be hidden instead of destroyed when the user clicks + * the close button. */ window_props[PROP_HIDE_ON_CLOSE] = g_param_spec_boolean ("hide-on-close", NULL, NULL, @@ -2952,7 +2953,7 @@ gtk_window_set_hide_on_close (GtkWindow *window, * gtk_window_get_hide_on_close: * @window: a window * - * Returns whether the window will be hidden when the close + * Returns whether the window will be hidden instead of destroyed when the close * button is clicked. * * Returns: true if the window will be hidden -- GitLab