dialog: Remove MessageDialogContent.body property

According to the new dialog design, dialogs generally only have a title
and a description, so the `body` property is no longer needed.

At the places where it's still used, we replace it with the description
property or a plain label we add to MessageDialogContent ourselves.

See https://gitlab.gnome.org/GNOME/gnome-shell/issues/1343

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/886
This commit is contained in:
Jonas Dreßler
2020-01-13 14:04:40 +01:00
committed by Florian Müllner
parent 845c52797b
commit 2fc84e0fe3
10 changed files with 41 additions and 61 deletions

View File

@ -52,10 +52,10 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
this._countDown = Meta.MonitorManager.get_display_configuration_timeout();
let title = _("Do you want to keep these display settings?");
let body = this._formatCountDown();
let description = this._formatCountDown();
this._content = new Dialog.MessageDialogContent({
title, body,
title, description,
x_expand: true,
y_expand: true,
});
@ -101,7 +101,7 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog {
return GLib.SOURCE_REMOVE;
}
this._content.body = this._formatCountDown();
this._content.description = this._formatCountDown();
return GLib.SOURCE_CONTINUE;
}