Skip to content

Commit

Permalink
gtk3/message_dialog: Set window title (#94)
Browse files Browse the repository at this point in the history
If it's not set, it will be an empty string, appearing as such in
the user's window manager, etc.
  • Loading branch information
crumblingstatue authored Nov 24, 2022
1 parent b9c04e8 commit 1646d5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/gtk3/message_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ impl GtkMessageDialog {
title.as_ptr(),
) as *mut gtk_sys::GtkDialog;

// Also set the window title, otherwise it would be empty
gtk_sys::gtk_window_set_title(dialog as _, title.as_ptr());

for custom_button in custom_buttons {
if let Some((custom_button_cstr, response_id)) = custom_button {
gtk_sys::gtk_dialog_add_button(
Expand Down

0 comments on commit 1646d5a

Please sign in to comment.