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/tree.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/tree.c')
-rw-r--r-- | src/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -291,7 +291,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) g_signal_connect (dialog, "response", G_CALLBACK(zenity_tree_dialog_response), data); 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); |