From a2d1ec2c1f160bfd42be36f414a049738e6b9493 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 7 Jul 2015 17:09:58 +0800 Subject: [PATCH] Make "title" work --- atom/browser/ui/message_box_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/ui/message_box_gtk.cc b/atom/browser/ui/message_box_gtk.cc index 09bff182a16..626f16704dd 100644 --- a/atom/browser/ui/message_box_gtk.cc +++ b/atom/browser/ui/message_box_gtk.cc @@ -45,6 +45,8 @@ class GtkMessageBox { if (!detail.empty()) gtk_message_dialog_format_secondary_text( GTK_MESSAGE_DIALOG(dialog_), "%s", detail.c_str()); + if (!title.empty()) + gtk_window_set_title(GTK_WINDOW(dialog_), title.c_str()); // Set dialog's icon. if (!icon.isNull()) {