diff options
author | Adam Williamson <awilliam@redhat.com> | 2023-04-20 11:57:34 -0700 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2023-04-20 11:57:34 -0700 |
commit | 5db548c4368459eb71da8f2a923c8830f5e0bcba (patch) | |
tree | f8fb52b0ef9b8d23aa46cc55274db9d71193b356 /src/password.c | |
parent | 7998cc581046aeab3f7c952656aec8accaef76e2 (diff) | |
download | zenity-5db548c4368459eb71da8f2a923c8830f5e0bcba.tar.gz |
Set dialog 'heading', not 'title'
In the GTK 4 port, we made all Zenity dialogs use the libadwaita
`AdwMessageDialog` class. This dialog does not have a title bar
and does not show its title. The equivalent to title for this
class is 'heading' - everywhere we were previously setting the
title, we should set the 'heading' instead.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
Diffstat (limited to 'src/password.c')
-rw-r--r-- | src/password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password.c b/src/password.c index 69dd683..fc27021 100644 --- a/src/password.c +++ b/src/password.c @@ -120,7 +120,7 @@ zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data) 1, 1); if (data->dialog_title) - gtk_window_set_title (GTK_WINDOW(dialog), data->dialog_title); + adw_message_dialog_set_heading (ADW_MESSAGE_DIALOG(dialog), data->dialog_title);; if (data->modal) gtk_window_set_modal (GTK_WINDOW(dialog), TRUE); |