1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

GMessageBox: Add icons to message boxes with 3 standard ones to choose from.

This commit is contained in:
Andreas Kling 2019-05-08 20:13:39 +02:00
parent b5b44a29bb
commit de98b2770b
7 changed files with 57 additions and 10 deletions

View file

@ -90,8 +90,7 @@ int main(int argc, char** argv)
);
int rc = mkdir(new_dir_path.characters(), 0777);
if (rc < 0) {
GMessageBox message_box(String::format("mkdir() failed: %s", strerror(errno)), "Error", window);
message_box.exec();
GMessageBox::show(String::format("mkdir() failed: %s", strerror(errno)), "Error", GMessageBox::Type::Error, window);
} else {
directory_view->refresh();
}