]> khamidou — GitHub mirrors - electron.git/commitdiff
Make "title" work
authorCheng Zhao <zcbenz@gmail.com>
Tue, 7 Jul 2015 09:09:58 +0000 (17:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 7 Jul 2015 09:21:30 +0000 (17:21 +0800)
atom/browser/ui/message_box_gtk.cc

index 09bff182a168f3870a7e3db52dfef40c8710d371..626f16704dde9c0dcc6f008d7b6f636f732584f2 100644 (file)
@@ -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()) {