Make "title" work

This commit is contained in:
Cheng Zhao 2015-07-07 17:09:58 +08:00
parent 9b25c16980
commit a2d1ec2c1f

View 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()) {