summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
authorAdam Williamson <awilliam@redhat.com>2023-04-20 11:57:34 -0700
committerAdam Williamson <awilliam@redhat.com>2023-04-20 11:57:34 -0700
commit5db548c4368459eb71da8f2a923c8830f5e0bcba (patch)
treef8fb52b0ef9b8d23aa46cc55274db9d71193b356 /src/entry.c
parent7998cc581046aeab3f7c952656aec8accaef76e2 (diff)
downloadzenity-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/entry.c')
-rw-r--r--src/entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry.c b/src/entry.c
index bf94cd4..2632d28 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -73,7 +73,7 @@ zenity_entry (ZenityData *data, ZenityEntryData *entry_data)
g_signal_connect (dialog, "response", G_CALLBACK(zenity_entry_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);;
gtk_window_set_icon_name (GTK_WINDOW(dialog),
"insert-text");